• JMap.Geometry.getCircleFeature

    Returns a polygon feature equivalent to the circle.

    Parameters

    • center: JLocation | JPoint

      Location of circle's center

    • radius: number

      The radius in KM

    Returns GeoJSON.Feature<GeoJSON.Polygon>

    Example

    // returns the circle feature
    const circle = JMap.Geometry.getCircleFeature([ 10, 20 ], 1.4)

    // returns the circle feature
    const circle = JMap.Geometry.getCircleFeature({ x: 10, y: 20 }, 1.4)