• JMap.Geometry.lineIntersect

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

    Parameters

    • lineFeature: Feature<LineString, GeoJsonProperties>

      A line feature

    • otherFeature: Feature<Geometry, GeoJsonProperties>

      A feature (can be not a line)

    Returns boolean

    Example

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