Staticfrom根据数组创建 GeoBounds.
Example:
const b = GeoBounds.fromArray([left, bottom, right, top]);
Staticfrom根据数组创建 GeoBounds.
Example:
const b = GeoBounds.fromString("[1,2,3,4]");
StaticfromStaticfrom根据中心点和长,宽生成bounds
中心点
宽
Optionalheight: number高,不输入时与宽一样
得到中心点
得到左上角
得到左下角
得到右上角
得到右下角
生成一个随机点
x轴范围比例 缺省 0.6
y轴范围比例 缺省 0.6
生成一个随机geojson点集合
点的数目
x轴范围比例 缺省 0.6
y轴范围比例 缺省 0.6
OptionalpropertiesCb: (index: number) => Object属性回调函数
生成一个随机geojson线集合
最多线的数目
每条线最多的点的数目
x轴范围比例 缺省 0.6
y轴范围比例 缺省 0.6
OptionalpropertiesCb: (index: number) => Object属性回调函数
OptionalminLineCount: number最少线的数目(缺省为1)
OptionalminPointCount: number每条线最少的点的数目(缺省为2)
生成一个随机geojson多边形集合
最多多边形的数目
每条线最多的点的数目
x轴范围比例 缺省 0.6
y轴范围比例 缺省 0.6
OptionalpropertiesCb: (index: number) => Object属性回调函数
OptionalminPolygonCount: number最少多边形的数目(缺省为1)
OptionalminPointCount: number每条线最少的点的数目(缺省为3)
返回数组
The coordinates represented as a array of the format [minx, miny, maxx, maxy]'.
返回点数组,包括四个顶点
The coordinates represented as a array of the format [[minx,maxy], [maxx,maxy], [maxx,miny], [minx,miny]]'.
返回字符串.
The coordinates represented as a string of the format minx, miny, maxx, maxy'.
克隆
变成正方形,使宽高相等
OptionalisMinValue: boolean是否取宽高的最小值或最大值,默认最大值 @return{GeoBounds}
获取宽度
获取高度
位移包围盒
GeoBounds地理范围.