• JMap.Geometry.getFeatureCollection

    Returns a feature collection.

    Parameters

    • features: Feature<Geometry, GeoJsonProperties>[] | JPoint[] | JLocation[]

      could be a collection of turf features, JMap locations, or JMap points

    Returns GeoJSON.FeatureCollection

    Example

    // returns the feature collection for the 2 points
    const distance = JMap.Geometry.getFeatureCollection([ { x: 10, y: 20 }, { x: 30, y: 30 } ])