Finding and Installing the WebMap Extension

Introduction

DotSpatial is an open-source project that contains controls which can be used to manipulate and display geographic information. MapWindow 6 is a thin wrapper around DotSpatial. This article explains how to locate, download, and use the WebMap extension. Some extensions are included by default with DotSpatial builds while others can be found in the Extension Manager.

Downloading DotSpatial

This article is based on DotSpatial 1.0 Release — Minimal located on the downloads tab at http://dotspatial.codeplex.com

Using the Extension Manager

Launch the Extension Manager (from the File menu).

image

The Extension Manager will probably be greatly improved at some point and include a search feature. Presently, there is a short list of extensions we can view on the Online tab. Select the DotSpatial.Plugins.WebMap extension and click Install.

image

The application status bar informs us that the extension is downloading. Once the installation completes, we can see it appear on the Installed Extensions tab. You will also note the addition of two drop down controls on the toolstrip:

image

If you want to see the files that were created on disk, click Show Extensions Folder. This will open explorer to a location similar to %appdata%\DemoMap.exe\Extensions\Packages

Using WebMap

Select the Bing Street Map from the first drop down and click the zoom tool.

image

As we zoom in, the extension displays a properly resized basemap from the nearest available zoom level. Feel free to contribute code that creates an option to snap to zoom levels!

Advertisements

4 thoughts on “Finding and Installing the WebMap Extension

    • Because the extension manager itself is an extension, you wouldn’t be able to install a package using DotSpatial directly, but you can load packages that are available on disk in the Plugins folder by calling appManager.LoadExtensions();

      If you want to install packages by name, you can reference DotSpatial.Plugins.ExtensionManager and use the following code.
      Packages packages = new Packages();
      packages.Install("DotSpatial.Plugins.Ribbon");

  1. Pingback: Getting Started with Attribute Data Explorer « Mudnug

  2. Pingback: Composing an Application by using Extensions « Mudnug

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s