This project is read-only.

Old Version: VEToolkit

This project currently has 3 main pieces: JavaScript, jQuery and ASP.NET MVC. Each are part of the overall VEToolkit project, but have their own release cycles. Currently there are releases available for download of both the JavaScript and jQuery extensions. The ASP.NET MVC component is currently under development and can be downloaded within the latest Source Source Code Change Set.

VEToolkit in the News

2009-04-08 - Simplovation release open source VEToolkit for Virtual Earth via geowebguru.com
2009-01-27 - VEToolkit: A must have for all Virtual Earth Developers! via Marc Schweigert
2009-01-25 - VEToolkit - Virtual Earth Toolkit v6.2.012509.1053 Released! via Chris Pietschmann

jQuery Features

Simple jQuery extensions for the VEToolkit that allow Virtual Earth Maps to be created in a page more easily using jQuery.

VEToolkit-jQuery-6.2.040809.1624-CodeSample.png

ASP.NET MVC Features

The “VEToolkit.Web.MVC.Map” component is written as an Extension to the ASP.NET MVC AjaxHelper class, and allows for a simpler experience when implementing Virtual Earth mapping within ASP.NET MVC applications. This is an early prototype of what the component will be; it’s not a final release; but you are free to use it.

VEToolkit-ASPNETMVC-CodeSample.png

JavaScript Features - Controls/Extenders/Methods

The JavaScript Controls/Tools in the VEToolkit library are completely self contained, and don't require the use of any other JavaScript library to use other than Virtual Earth 6.2 (current version). This allows you to use this toolkit along-side any other JavaScript library (jQuery, ASP.NET AJAX, etc.); plus you can make use of it with any server-side framework of you choice (ASP.NET, ASP.NET MVC, PHP, etc.).
  • Controls
    • VEToolkit.ShapeListControl
      • A simple control that displays a list of Shapes that are currently plotted on the VEMap.
  • Extenders
    • VEToolkit.ContextMenuExtender
      • This extends the VEMap with Context Menu (right click menu) support.
    • VEToolkit.DragShapeExtender
      • This extends the VEMap to allow the user to reposition Shapes by simply clicking and dragging them around the map. It also implements functionality that allows you (the programmer) to determine at runtime which Shapes are draggable.
    • VEToolkit.MiniMapExtender
      • This extends the VEMap with better MiniMap support; allowing the MiniMap to easily be positioned and aligned into any side/corner of the VEMap display.
  • Helper Methods
    • VEToolkit.LoadAPI
      • This methods allows you to easily load the Virtual Earth JavaScript API On-Demand at runtime.
    • VEToolkit.Drawing.DrawCircle
      • This method returns a collection of VELatLong objects that represent a Circle with a given radius surrounding a specific VELatLong center point.
    • VEToolkit.Math.CalculateBearing
      • This method calculates the bearing (in degrees) between two VELatLong coordinates. This can be used to calculate the direction an object is pointing or traveling.
    • VEToolkit.Math.CalculateInverseCoordinate
      • This method calculates the Inverse VELatLong coordinate for a given VELatLong coordinate. (Or opposite position on the globe)
    • VEToolkit.Math.CalculateMidPoint
      • This method calculates the Mid Point (Center Point) in between two VELatLong coordinates.
    • VEToolkit.Math.GetPolygonCentroid
      • This method calculates the approximate Centroid (Center Point) of a Polygon.
    • VEToolkit.Math.IsInPolygon
      • This method calculates whether a given VELatLong coordinate exists within a given Polygon made up of an Array/collection of VELatLong coordinates.

JavaScript Intellisense

The JavaScript (.js) source code files for this project also include full Visual Studio 2008 Intellisense support.

VEToolkit_IntellisenseScreenshot001.png

VEToolkit_IntellisenseScreenshot002.png

JavaScript File Structure

The file structure of the JavaScript (.js) files is as follows:
  • VEToolkit.Core.js - This file contains the "core" methods of the toolkit. This includes any basic Math and Drawing functions/methods.
  • VEToolkit.{...}Extender.js - Each Extender is contained within it's own .js file that ends with "Extender.js". Extenders are objects that "extend" the VEMap object with a set of functionality that isn't already built into the VE API. The functionality added may not always display any content to the user.
  • VEToolkit.{...}Control.js - Each Control is contained within it's own .js file that ends with "Control.js". Controls are objects that display content to the user within the page, and connect to the Map to provide that content within the context of the Map being displayed.

Last edited Dec 20, 2010 at 2:58 PM by crpietschmann, version 3

Comments

No comments yet.