Create a MgResourceService and call GetResourceContent() on the layout's resource id, which will return the xml content for that web layout.
Change the <ResourceID> element of the <Map> to the resource id of the map you're after. Then save the changes back to that layout's resource id using SetResource() The next time you load the ajax viewer with that web layout id, it will have the new map. - Jackie euskalmap wrote: > > Hi > Can i change the resource map in a layout defintion by code ? > If yes who can i find an example? > thanks > -- View this message in context: http://n2.nabble.com/Change-Resource-map-in-layout-definition-tp2168693p2169165.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
