[mapguide-users] change layer definition runtime

makoychan makoychan at yahoo.com
Wed Apr 12 10:30:53 PDT 2017


Hi,

Back again, was able to make it work before with MapGuide 2.6.1 32bit  now
upgraded to 3.1.0  64bit.. Same code  with changing layer at runtime.. funny
thing now, nothing happens, but if select something on the map, it throws an
error inside fusion-compressed.js, 'layerName' does not exists. 

>From the c# code layers.remove(layer) it did work it seems that the layer
was really removed on the map.. but the mapwidget itself didnt refresh to
the new layer, it still looks the same. did call the command.
mapWidget.redraw, mapWidget.reloadMap(). but nothing happens.

Tried almost everything but its not working at all..

Is there something that i missed on the code?



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382p5317071.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list