描述
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| coordinates | Position | 经度、纬度位置(均为十进制度) |
| properties? | GeoJsonProperties | 作为属性添加的键值对对象 (默认 {}) |
| options? | Object | 可选参数 (默认 {}) |
| options.bbox? | BBox | 与 Feature 关联的边界框数组 [西, 南, 东, 北] |
| options.id? | Id | 与 Feature 关联的标识符 |
返回值
Feature<Point, GeoJsonProperties> Point 要素
示例
javascript
var point = turf.point([-75.343, 39.984]);
//=point安装
javascript
$ npm install @turf/helpers
import { point } from "@turf/helpers";
const result = point(...);javascript
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.point(...);