JSPM

turf-multipolygon

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 88
  • Score
    100M100P100Q122895F
  • License MIT

turf multipolygon module

Package Exports

  • turf-multipolygon

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (turf-multipolygon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

turf-multipolygon

build status

turf multipolygon module

turf.multipolygon(coordinates, properties)

Creates a Feature based on a coordinate array. Properties can be added optionally.

Parameters

parameter type description
coordinates Array.<Array.<Number>> an array of Positions
properties Object optional: an Object of key-value pairs to add as properties

Example

var multiPoly = turf.multipolygon([[0,0],[10,10]]);

//=multiPoly

Returns Feature.<MultiPolygon>, a multipolygon feature

Installation

Requires nodejs.

$ npm install turf-multipolygon

Tests

$ npm test