[fusion-trac] #14: Legend layer checkbox not updated after
calling map.showLayer
Fusion
trac_fusion at osgeo.org
Thu Jul 23 11:08:31 EDT 2009
#14: Legend layer checkbox not updated after calling map.showLayer
-----------------------+----------------------------------------------------
Reporter: jfournier | Owner: madair
Type: defect | Status: closed
Priority: P2 | Milestone: 2.0
Component: Widgets | Version: 1.0.2
Severity: Minor | Resolution: fixed
Keywords: | External_id:
State: New | Browser: All
Os: All |
-----------------------+----------------------------------------------------
Changes (by pagameba):
* status: assigned => closed
* resolution: => fixed
Comment:
The correct method is:
var map = Fusion.getMapByIndice(0);
var base = map.getAllLayers()[0];
var layer = base.getLayerByName('Parcels');
layer.hide();
layer.show();
calling base.showLayer(layer) and base.hideLayer(layer) will have the same
visual effect on the map but will not update the legend checkboxes.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/14#comment:3>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list