• JMap.Geometry.getPolygonFeatureFromCircle

    Returns a polygon feature from a circle object (JCircle).

    Parameters

    Returns GeoJSON.Feature<GeoJSON.Polygon>

    Example

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