Chris Pietschmann

husband, father, hacker, entrepreneur, futurist, innovator, autodidact


VEToolkit: Virtual Earth Toolkit Open Source Project

A couple weeks ago I started the new VEToolkit (Virtual Earth Toolkit) Open Source project. This project spawns out of the need for more helpers to make Virtual Earth Map development much simpler, and follows inspiration from the Ajax Control Toolkit. This is a JavaScript library, so it's all client-side code; just like the Virtual Earth AJAX API itself. The project is also meant to play nicely with any client-side, JavaScript library you want to use within your application (such as jQuery, Prototype, etc.)

Below is a list of "helper" methods that the project currently includes at the time of writing this post:

- This method returns an array of VELatLong objects that represent a circle drawn to the specified radius around a given center point.

- This method calculates the bearing (or direction) from 1 VELatLong coordinate to another.

- This method calculates the distance between 2 VELatLong coordinates using the specified unit of measurement (Miles or Kilometers).

- This method calculates the mid point (or center point) between 2 VELatLong coordinates.

- This method calculates the approximate centroid (or center point) of a given Polygon's points.

- This method returns true or false specifying if the given VELatLong point is within the bounds of the given Polygon coordinates.


Also, here's a list of the current JavaScript-based "Extender" controls in the works:

- This extender provides easy to use Context Menu functionality for Virtual Earth.

- This extender allows you to easily link up functionality that allows you to drag-n-drop specific Shape's that are plotted.

- This extender provides easy to use functionality for controlling the position of the MiniMap. For Example: Auto-Align MiniMap to the Top Right Corner of the Map.


Project Homepage:

blog comments powered by Disqus