I don't know how to re-initialize the ajaxviewer,
but you should be able to overwrite the current Runtime map,
by issuing a MgMap.Create(...) call.

Next step would be to refresh the viewer, but it will not be enough
to do a regular GetMapFrame().Refresh(), as that will not update
the variables with ea. the "screen to map" and "meters pr unit" values.

Regards, Kenneth, GEOGRAF A/S



Manuel Ferreira skrev:
Hi all,
I created a few Map Definitions and one Web-Layout definition with MapGuide Studio. I want to use one Web-Layout with many Maps and the user should switch maps dynamically. My question: How to switch a map referenced in the Web-Layout dynamically with the API? I know how to create a map and save it in the session-repository...

I use MGO 1.2 (Windows) with the phpviewer.

Thanks everyone

Manuel

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to