[mapguide-internals] Fwd: Swithing base MgLayerGroup on/off ...
fails?
Ivan Milicevic
Ivan.Milicevic at supranet.hr
Sat Dec 22 18:05:58 EST 2007
And when you move a view with pan? The map still hide group?
________________________________
From: mapguide-internals-bounces at lists.osgeo.org on behalf of Maksim Sestic
Sent: pet 21.12.2007 12:40
To: mapguide-internals at lists.osgeo.org
Subject: [mapguide-internals] Fwd: Swithing base MgLayerGroup on/off ... fails?
I guess I'm missing something, but this won't switch on/off base layer group:
Dim map As MgMap = ...get runtime Map...
Dim layerGroup As MgLayerGroup = map.GetLayerGroups.GetItem(layerGroupName)
layerGroup.SetVisible(True)
map.Save(...ResourceService...)
and then call JavaScript function parent.parent.Refresh(); from Task Pane,
base layer group gets switched on only in legend pane, but map
representation won't change. MgLayerGroup doesn't have ForceRefresh() method
like MgLayer.
I'm coding my own Legend TreeView control in AJAX.NET and everything else in
it works just fine (dynamic layers, etc), except for the base layer groups.
Regards,
Maksim Sestic
--
View this message in context: http://www.nabble.com/Fwd%3A-Swithing-base-MgLayerGroup-on-off-...-fails--tp14454152s16610p14454152.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
More information about the mapguide-internals
mailing list