In Fusion, the SelectWithinPanel.templ selects all selectable layers AND non-visible layers. How can we exclude the non-visible layers - if you have lots of layers, this is a very confusing to the user...
function FillLayerList() { var list = document.getElementById("layers"); var listNames = document.getElementById("layerNames"); list.options.length = 0; var map = GetParent().Fusion.getMapByName(mapName); var layers = map.aMaps[0].getSelectableLayers(); if(layers.length > 0) { for(var i = 0; i < layers.length; i++) { var layer = layers[i]; list.options[i] = new Option(layer.legendLabel != ""? layer.legendLabel: layer.layerName); if (i == 0) list.options[0].selected = true; listNames.options[i] = new Option(layer.layerName); } } else { list.options[0] = new Option("__#BUFFERNOLAYER#__"); } document.getElementById("Done").disabled = layers.length == 0; } -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Select-Within-tp6155813p6155813.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users