JS API
Map Object
QueryEngine Object
Layer Object
Feature Object
Query Object
GeoJson Function Library (Experimental)

getFeatureCollection

Returns a feature-collection in GeoJSON format of all the local features shown on the map.

Parameters

No Parameters

Example

var map = new Mapzania.Map("map-div", "AFRICA");

var geojson = map.usingLayer("COUNTRIES")
  .getFeatureCollection();