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.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to