此类表示一个地理坐标点。

构造函数

  • 以指定的经度和纬度创建一个地理点坐标

    参数类型说明
    lngnumber地理经度
    latnumber地理纬度

    返回值 Point

    示例代码1

    const point = new BMap.Point(116.404, 39.915);
    

属性

地理纬度

地理经度

方法

  • 判断坐标点是否相等,当且仅当两点的经度和纬度均相等时返回 true

    参数类型说明
    otherPoint待比较的坐标点

    返回值 boolean

    示例代码1

    const point = new BMap.Point(116.404, 39.915);
    const other = new BMap.Point(116.404, 39.915);
    const isEqual = point.equals(other); // true