[mapguide-users] Change Resource map in layout definition

Jackie Ng jumpinjackie at gmail.com
Fri Jan 16 11:37:01 EST 2009


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.



More information about the mapguide-users mailing list