geojsonType
描述
¥Description
Enforce expectations about types of GeoJSON objects for Turf.
参数
¥Parameters
名称 | 类型 | 描述 |
---|---|---|
value | GeoJSON | 任意 GeoJSON 对象 |
type | string | 预期 GeoJSON 类型 |
name | string | 调用函数的名称 |
返回
¥Returns
void
安装
¥Installation
$ npm install @turf/invariant
import { geojsonType } from "@turf/invariant";
const result = geojsonType(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.geojsonType(...);