此类表示地图上的一点,单位为像素。像素坐标的坐标原点为地图区域的左上角。
创建像素点对象实例
x
number
y
const pixel = new BMap.Pixel(100, 200);
x 坐标
y 坐标
判断坐标点是否相等,当且仅当两点的 x 坐标和 y 坐标均相等时返回 true
other
Pixel
const pixel = new BMap.Pixel(100, 200);const other = new BMap.Pixel(100, 200);const isEqual = pixel.equals(other); // true
此类表示地图上的一点,单位为像素。像素坐标的坐标原点为地图区域的左上角。