Search Wiki:
Project Description
A Winforms User Control for displaying and manipulation maps using Microsoft Visual Earth.

rp: MyGPSTracker

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
It supports V6.1 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.
directions.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.1&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!

----------------------------------------------------------------------------------------------------------------------------------------------------------
My name is Peter Bons and I am a Software Engineer at De Giessen Automatisering based in The Netherlands (http://www.giessen.nl)
See my personal blog for more information: http://www.2000miles.nl
Last edited Jun 26 at 2:24 PM  by Expecho, version 12
Comments
No comments yet.

Updating...