Staticconvert根据不同的类型创建地理坐标 GeoPoint .
Example:
const p1 = GeoPoint.convert(new GeoPoint(x, y, z));
const p2 = GeoPoint.convert([x, y]);
const p3 = GeoPoint.convert([x, y, z]);
const p4 = GeoPoint.convert(lng: -73.9749, lat: 40.7736});
const p5 = GeoPoint.convert(lon: -73.9749, lat: 40.7736});
Either [[GeoPointLike]], GeoPointLike or GeoPointLike object literal.
Staticfrom根据字符串创建 GeoPoint.
Example:
const b = GeoPoint.fromString("1,2");
克隆一个坐标
返回数组
The coordinates represeted as an array of x and y.
var ll = new vjmap.GeoPoint(-73.9749, 40.7736);
ll.toArray(); // = [-73.9749, 40.7736]
返回字符串.
The coordinates represented as a string of the format 'x, y, z?'.
var ll = new vjmap.GeoPoint(-73.9749, 40.7736);
ll.toString(); // = "GeoPoint(-73.9749, 40.7736)"
单位长度.
投影 [x,y] = [-y, x].
四舍五入取整.
长度.
角度.
距一个点的interiorAngle
GeoPoint地理坐标.