Hi all,

I've run into a bug in function updateTocScale(tocurl), when I have two layers 
with a similar name the vis/unvis classes are not applied correctly:

I have two raster layers named
Satellite
SatelliteHiRes

The check on line 161 (3.2beta1) 
if (spanObj.id.indexOf( 'spxg_' + l) != -1) {

returns true for the second layer even when l is "Satellite".

A quick fix is to do an exact comparison:

if (spanObj.id == 'spxg_' + l) {

but I completely ignore why the check was like that, so probably my fix will 
not work in other situations.

Perhaps a match() function on the id would do a better job.


-- 
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3:  www.itopen.it
Linux User# 167502

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to