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

createMultiPolygon

Creates a GeoJSON MultiPolygon geometry object.

Parameters

Name Required Description
coordinates Yes The GeoJSON coordinates of the MultiPolygon.

Example

var gjson = Mapzania.GeoJson.createMultiPolygon([[[[20.33, 30.64],[16.23, 21.59],[20.33, 30.64]],[[12.43, 41.22],[19.87, 32.43],[12.43, 41.22]]],[[[20.33, 30.64],[16.23, 21.59],[20.33, 30.64]],[[12.43, 41.22],[19.87, 32.43],[12.43, 41.22]]]]);