2

How can I create a Map Document (including layers, symbology info etc.) for DotSpatial just like we have MXD File in ArcGIS?

1

Adding the MenuBar plugin to your app will provide your user with an option on the File menu to Save Project. The project file is an xml based file that includes the layers, symbology and so on.

If you are creating your own DotSpatial app and wish to provide some other mechanism to save the project, please refer to the MenuBar plugin code for an example:

        try
        {
            //use the AppManager.SerializationManager to save the project
            App.SerializationManager.SaveProject(fileName);
        }
        catch (XmlException)
        {
            ShowSaveAsError(fileName);
        }
        catch (IOException)
        {
            ShowSaveAsError(fileName);
        }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.