Hi all, 

When I remove a layer and group programmatically, the features are now gone
from the map, the layer is removed from the legend, but the group folder of
the layer remains in the legend after reload. 

When checking in Maestro, this group is gone from the Map definition, so I
don't understand why it is still showing on the legend. 

I am calling this function to reload the map.

var mgApiMapWidgetId = 'Map';

function RefreshMapviewer() {
    var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);
    if (mapWidget && mapWidget.isMapLoaded()) {
        mapWidget.reloadMap();
    }
}

I tried searching for other posts, but found nothing for this particular
problem.
Please let me know if I should report this as a bug

Thanks!
Kellie

Sierra Systems Group
Canada

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Removing-layer-and-group-programatically-doesnt-remove-group-in-legend-in-Fusion-2-2-tp5993927p5993927.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to