Skip to content

KBE3D / KBCore / turf / point

函数: point()

point<P>(coordinates: Position, properties?: P, options?: { bbox?: BBox; id?: Id; }): Feature<Point, P>

Function

Creates a Point Feature from a Position.

类型参数

P

P extends GeoJsonProperties = GeoJsonProperties

参数

coordinates

Position

longitude, latitude position (each in decimal degrees)

properties?

P

an Object of key-value pairs to add as properties

options?

Optional Parameters

bbox?

BBox

Bounding Box Array [west, south, east, north] associated with the Feature

id?

Id

Identifier associated with the Feature

返回

Feature<Point, P>

a Point feature

示例

ts
var point = turf.point([-75.343, 39.984]);

//=point

KBE3D @3.0.0 Copyright © 2024-present KBE3D