[mapguide-users] Select Within

GordonL gordon.luckett at arrowgeomatics.com
Wed Mar 9 17:41:49 EST 2011


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.


More information about the mapguide-users mailing list