Hi,

For those who are upgrading from a 2.x version of MapGuide and can no longer 
add / edit layers or basically manipulate the map during runtime please read 
this post around the changes made to the mgmap constructor.

http://themapguyde.blogspot.com.au/2013/03/mapguide-tidbits-mgmap-constructor.html
 

Basically if your old code has something like:
$map = new MgMap();
$map->Open($resourceService,$mapName);

Then you are going to have to change the way you get a handle on the current 
map. A very simple example can be found in \mapguide\web\www\<your 
lang>samples\change_layers_Via_dom.xyz (if you remembered to install the 
samples).

Hope this helps.

Mark

_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to