OK I've found out how to change my code that this works again.
I had to open the map with the MapName not with the ResourceIdentifier:
MgMap map = new MgMap();
MgResourceIdentifier mapId = new MgResourceIdentifier("Session:" +
MgSessionId + @"//" + MapName + "." + MgResourceType.Map);
map.Open(ResourceService, MapName); // map.Open(ResourceService, mapId) -
That's wrong
But I'm still confused because I don't know what the difference is between
opening a runtime map with the ResourceIdentifier or the MapName. Until now
I supposed that these both methods have the same result. Maybe someone can
explain this behavior. Was it a bug in the former release of MapGuide or is
it one now?
Gunter
Kenneth, GEOGRAF A/S wrote:
>
> Are you mixing som 1.1 and 1.2 API's ?
> There were some changes to how the Layers are stored in 1.2.
>
> Make sure your application has the same DLL's as present in the
> installation
>
> Regards, Kenneth, GEOGRAF A/S
>
--
View this message in context:
http://www.nabble.com/Confusing-about-reload-runtime-map-tf4850877s16610.html#a13896658
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