VDS Technologies

 

Clear Map Session

6/12/2014 1:59:11 AM
Total Posts 11

Clear Map Session

Hi,

If Map.EnableSession is set to true, how does one clear the MapSession so that the map can store a new set of layers in the MapSession?

If the user wants to view a map with a different group of layers, the amp goes back to the group of layers that were used when the map initially started. How do I clear them?

Thank you.

 

6/12/2014 5:05:28 AM
MVP
Total Posts 323

Re: Clear Map Session

Call the Map.RemoveAllLayers method, then add new layers.

6/13/2014 9:57:15 AM
Total Posts 11

Re: Clear Map Session

Thank you.