randomPolygon()

随机生成多个面。

var polygons = turf.randomPolygon(25, {bbox: [-180, -90, 180, 90]})

参数

参数名 类型 描述
count int 点数量
options Object  

options

参数名 类型 默认值 描述
bbox double[] [-180,-90,180,90] 限制范围
num_vertices int 10 每条线顶点数量
max_radial_length int 10 离多边形中心最大距离

返回值

FeatureCollection <LineString>

results matching ""

    No results matching ""