[mapguide-users] Re: Passing the SessionId to a new map does not
reflect the changes made
Liglio
liglio at pobox.com
Tue Dec 13 06:25:12 EST 2011
Thanks all for replies,
I found out that the ajaxviewer always do a map.Create using the library
repository, so all my changes in the session repository are not reflected.
To correct, I modified the source code of mapframe.aspx this way:
// map.Create(resourceSrvc, resId, mapName);
if(resourceSrvc.ResourceExists(new
MgResourceIdentifier("Session:" + sessionId + "//" + mapName + "." +
MgResourceType.Map)))
map.Open(resourceSrvc, mapName);
else
map.Create(resourceSrvc, resId, mapName);
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Passing-the-SessionId-to-a-new-map-does-not-reflect-the-changes-made-tp7043424p7089569.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list