[fusion-users] Re: legend.js layer-group show
Jorge Soria
megajor at gmail.com
Wed Feb 16 09:51:03 EST 2011
Well I Finally found the solution to my problem, right in this thread:
http://osgeo-org.1803224.n2.nabble.com/Problem-with-layer-hiding-and-showing-td2061509.html
http://osgeo-org.1803224.n2.nabble.com/Problem-with-layer-hiding-and-showing-td2061509.html
I had to embed sneShowLayers and sneHideLayers functions at my
fusionSF-compressed.js inside the class fusion.widgets.map
Then from the legend.js I called to
mapWidget.aMaps[0].sneShowLayers(layers,false); where "layers" is an array
of the layers from the group.
This way I can show/hide many layers at a time without weird behaviours.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/legend-js-layer-group-show-tp5961859p6032043.html
Sent from the Fusion Users mailing list archive at Nabble.com.
More information about the fusion-users
mailing list