I have started with the Community code sample "Dynamically setting initial
map position and scale "
And i have added codes to initialize the selection.
But when it redirect to the ajaxviewer, the selection is not there...
I've found these line in the mapviewernet/MapFrame.apsx page
//create an empty selection object and store it in the session
repository
MgSelection sel = new MgSelection(map);
sel.Save(resourceSrvc, mapName);
and further
map.Save(resourceSrvc, mapStateId);
These line erase any predefined selection, if i comment it out, my
predefined selection works fine
Is there a workaround?
Bruno
--
View this message in context:
http://www.nabble.com/Problem-opening-a-webLayout-with-predefined-selection-tp21035935p21035935.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