M/format/GeoJSON~GeoJSON


import GeoJSON from 'M/format/GeoJSON';

Main constructor of the class. Creates a layer with parameters specified by the user

new GeoJSON(userParameters)

facade/js/format/GeoJSON.js, line 27
Name Type Description
userParameters string | Object

parameters provided by the user

Extends

  • M.facade.Base

Methods

read(geojson){Array.<M.Feature>}

facade/js/format/GeoJSON.js, line 72

This function read Features

Name Type Description
geojson object

GeoJSON to parsed as a M.Feature array

write(features){Array.<Object>}

facade/js/format/GeoJSON.js, line 54

TODO

Name Type Description
features Array.<M.Feature>

features array to parsed as a GeoJSON FeatureCollection