1.0.0 • Published 8 years ago

read-geo-json v1.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

read-geo-json

an easy means of reading a geojson file in js

usage

readGeoJson(data, {
  eachPoint: function(point, feature, featureCollection) {
    //do something with point?
  }
});

optional settings

{
  eachPoint: function(point, feature, featureCollection) {},
  
  eachLineString: function(lineString, feature, featureCollection) {},
  
  eachPolygon: function(polygon, feature, featureCollection) {},
  
  eachMultiPoint: function(multiPoint, feature, featureCollection) {},
  
  eachMultiLineString: function(multiLineString, feature, featureCollection) {},
  
  eachMultiPolygon: function(multiPolygon, feature, featureCollection) {},
  
  eachGeometryCollection: function(geometryCollection, feature, featureCollection) {}
}