webmap plugin

May 10 at 5:54 PM

How can I set the webmap plugin to default to other than 'NONE' when my applications loads.
I'm loading the webmap plugin.

Thanks for the help.

May 11 at 8:36 AM
There is no way to set the selected provider directly.

But you could do the following thing.
  • Select the correct provider from the drop down.
  • Save your project via
  • Whenever you load your application call
after you've called
The WebMap plugin listens to the App.SerializationManager.Serializing and App.SerializationManager.Deserializing events, writing its settings to the dspx and reading them from there again.
May 11 at 10:26 AM
jany, thanks. will try your suggestions. Does the serialization only saves map settings? The other data of the application is not saved?
May 11 at 11:00 AM
Theorectically you could save whatever you want in there as long as you react to the App.SerializationManager.Serializing and App.SerializationManager.Deserializing events.

But basically DotSpatial uses it to save the layers from the legend with all the drawing information.

Layer data can be saved by calling FeatureSet.Save() so not sure what data remains that you'd want to save to the dspx.
May 11 at 12:52 PM
thanks jany