Appearance
KBE3D / KBCore / turf / points
函数: points()
points<
P>(coordinates:Position[],properties?:P,options?: {bbox?:BBox;id?:Id; }):FeatureCollection<Point,P>
Function
Creates a Point FeatureCollection from an Array of Point coordinates.
类型参数
P
P extends GeoJsonProperties = GeoJsonProperties
参数
coordinates
Position[]
an array of Points
properties?
P
Translate these properties to each Feature
options?
Optional Parameters
bbox?
Bounding Box Array [west, south, east, north] associated with the FeatureCollection
id?
Identifier associated with the FeatureCollection
返回
Point Feature
示例
ts
var points = turf.points([
[-75, 39],
[-80, 45],
[-78, 50]
]);
//=points