[fusion-users] Checking layers in the legend not working correctly

Jason Fournier jfournier at dmsolutions.ca
Tue Jun 10 08:14:39 EDT 2008


Hi Bernhard,

Thanks for reporting your issue.  Would you be able to make a detailed
ticket in trac so that we don't lose it?

Best regards,
Jason



-----Original Message-----
From: fusion-users-bounces at lists.osgeo.org
[mailto:fusion-users-bounces at lists.osgeo.org] On Behalf Of Bernhard
Schneider
Sent: Monday, June 09, 2008 2:29 AM
To: fusion-users at lists.osgeo.org
Subject: [fusion-users] Checking layers in the legend not working correctly

Hi everyone,

After starting the Fusion map application that I'm currently working  
at, the visibility of the map layers and the status in the legend are  
in synch, that is, all map layers that are checked in the legend and  
only these are visible in the map. However, if I uncheck a map layer,  
it remains visible in the map, if I check it again, it's gone from the  
map only to reappear when I uncheck it. I can reproduce this behaviour  
with all map layers and map groups.

I tried to track the problem down, and it may be in the functions  
show() and hide() of Fusion.Maps.MapServer.Layer and  
Fusion.Maps.MapServer.Group. (I'm using MapServer 5.something.) In the  
four functions, redrawing of the map is triggered through  
showLayer(..), hideLayer(..) and showGroup(..), hideGroup(..),  
respectively. Then, statements that change the value of the visibility  
flag follow. I suspect that the latter statement should occur before  
(!) that calls showLayer(..), etc. I tested it, and it fixed the  
problem. Am I missing something?

Should I post this to the Fusion-Dev list?

Bernhard

_______________________________________________
fusion-users mailing list
fusion-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-users



More information about the fusion-users mailing list