Skip to content

PointLike ​


表示Point的类型

Type ​

ts
type PointLike = Point | Array<number>

示例 ​

js
const p1 = new DiMap.Point(-77, 38); // a PointLike which is a Point
const p2 = [-77, 38]; // a PointLike which is an array of two numbers