Project Description
JavaScript helper functions for creating and reading GeoJSON data to and from Virtual Earth.

VEGeoJSON supports turning GeoJSON Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection to VE objects. It supports only creating GeoJSON Point, Polygon, LineString, GeometryCollection from VE objects. GeoJSON feature objects are mapped to VELayers.

For more information on GeoJSON visit http://geojson.org

Simply read geoJSON data into Virtual Earth.

var veGeoJSON = new VEGeoJSON(map);
var mygeojsondata = {....};

// add geojson data to the map
veGeoJSON.addGeoJSON(mygeojson, onLayerCreated, onShapeCreated)

var mygeojsondata = veGeoJSON.getGeoJSON(onGeometryCreated);

The optional onLayerCreated callback is called before layers are added to the map.
The optional onShapeCreated callback is called before adding a shape to the map.
The optional onGeometryCreated is called once a geoJSON geometry object is created.

Visit my blog for further info and examples on VEGeoJSON http://blog.lukesmith.net/index.php/category/vegeojson/
Last edited Sep 9 at 9:32 PM by lukesmith, version 4
Comments
No comments yet.

Updating...