• JMap.Geometry.polygonIntersect

    Returns true if the polygon feature geometry intersects the other feature geometry.

    Parameters

    • polygonFeature: Feature<Polygon, GeoJsonProperties>

      A polygon feature

    • otherFeature: Feature<Geometry, GeoJsonProperties>

      A feature (can be not a polygon)

    Returns boolean

    Example

    const polygonFeature = ...
    const otherFeature = ...
    // The method will return true if otherFeature intersect the polygonFeature
    const areIntersecting = JMap.Geometry.polygonIntersect(polygonFeature, otherFeature)