multiPoint
Description
Creates a Feature<MultiPoint> based on a coordinate array. Properties can be added optionally.
Parameters
Name | Type | Description |
---|---|---|
coordinates | Array<Position> | an array of Positions |
properties? | GeoJsonProperties | an Object of key-value pairs to add as properties (default {}) |
options? | Object | Optional Parameters (default {}) |
options.bbox? | BBox | Bounding Box Array [west, south, east, north] associated with the Feature |
options.id? | Id | Identifier associated with the Feature |
Returns
Feature<MultiPoint, GeoJsonProperties> a MultiPoint feature
Examples
var multiPt = turf.multiPoint([
[0, 0],
[10, 10],
]);
//=multiPt
Installation
$ npm install @turf/helpers
import { multiPoint } from "@turf/helpers";
const result = multiPoint(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.multiPoint(...);