Skip to content
On this page

计算最小边界矩形(envelope)

js
npm install @turf/envelope

传入任意数量的Features,并返回一个包含所有Features的最小外接矩形

Takes any number of features and returns a rectangular Polygon that encompasses all vertices.

参数

参数类型描述
geojsonGeoJSON输入图层

返回(Returns)

Feature <Polygon> - 包含所有顶点的矩形多边形Feature

示例