This project is read-only.

webmap plugin

May 10 at 6:54 PM
Hello,

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.

Glenn
May 11 at 9: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
     AppManager.SerializationManager.SaveProject(fileName)
  • Whenever you load your application call
  AppManager.SerializationManager.OpenProject(fileName)
after you've called
 AppManager.LoadExtensions()    
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 11: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 12:00 PM
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 1:52 PM
thanks jany