• JMap.Geometry.getFeatureFromLine

    Returns a line feature from a line object (JLine).

    Parameters

    Returns GeoJSON.Feature<GeoJSON.LineString>

    Example

    const line = [[ 10, 12], [12, 23], [34, 12]]
    // The method will return a line feature
    const feature = JMap.Geometry.getFeatureFromLine(line)