方法
所属类/模块
功能说明
intersectsCoordinate(coordinate)
ol/geom/Geometry
判断点是否在几何图形内部(边界上的点返回 false)
false
intersectsExtent(extent)
判断几何是否与给定范围相交
getClosestPoint(point)
获取几何上距离某点最近的点
forEachFeatureAtPixel(pixel, callback, {hitTolerance})
ol/Map
检测像素位置附近的要素(支持容差)
containsCoordinate(extent, coordinate)
ol/extent
判断坐标是否在范围内或边缘上