Project Description
A Winforms User Control for displaying and manipulation maps using Microsoft Bing Maps.

THIS PROJECT IS NO LONGER ACTIVELY MAINTAINED. I suggest everyone wo needs maps in a WinForms application to take a look at the new WPF control microsoft has released: http://www.microsoft.com/download/en/details.aspx?id=27165. WPF controls van be hosted in a WinForms application.

I have written a simple c# user control to include in your winform applications. It it no more than a web browser control with added functionality for displaying maps using Microsoft Visual Earth. The current release contains:
  • Add and remove layers
  • Find locations and show them using pushpins
  • Get and display driving directions
  • Supports mouse events
  • Save map output to disk
  • Draw lines and shapes
It supports V6.2 of the API.

User Control

The user control has some properties you can set design time:
properties.jpg

All properties and methods are documented in the source files.

Included sample application

The included sample application shows how to search for locations, add them to the map to a specified shapelayer using custom icons.
mainscreen.JPG

How to use
http://expecho.dyndns.org/DotNet/post/2008/06/How-to-use-the-virtual-earth-winforms-user-control-part-1-Introduction.aspx
http://expecho.dyndns.org/DotNet/post/2008/06/How-to-use-the-virtual-earth-winforms-user-control-part-2-Adding-pushpins.aspx
http://expecho.dyndns.org/DotNet/post/2008/06/How-to-use-the-virtual-earth-winforms-user-control-part-3-Driving-directions.aspx
http://expecho.dyndns.org/DotNet/post/2008/06/How-to-use-the-virtual-earth-winforms-user-control-part-4-Mouse-events2c-images-and-layers.aspx

To localize the driving directions modify the included html file at line 4:

<script type ="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&mkt=nl-NL"></script>

Change the nl-NL locale to the locale of your liking, the supported locales are listened here: http://msdn.microsoft.com/en-us/library/cc469974.aspx

See my blog for more detailed information (coming soon). The included sample application and the user control itself has documented source code.

Bugs? Problems?
Please let me know, use the discussion tab for these!

------------------------------------------------------------------------------------------------------------------------------------------------------
I am a .Net developer at De Heer Software based in Holland.
You can find my blog here.

My Image My Image My Image My Image

Last edited Jan 18, 2012 at 6:22 AM by Expecho, version 19