[mapguide-users] Problem opening a webLayout with predefined selection
Bruno Scott
bscott at geomapgis.com
Tue Dec 16 11:02:06 EST 2008
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.
More information about the mapguide-users
mailing list