Skip to main content

Circles

To add a circle, use the circle parameter in this format:

circle=circleStyle|circleCoord
  • circleCoord: Coordinates for the circle's center in lat, lon format, separated by |. You need at least one coordinate.

  • circleStyle: Customize the circle with:

    ParameterDefaultDescription
    radius(required)Specifies the radius of the element.
    color#0000bbDefines the stroke color of the element.
    width3Sets the stroke width of the element.
    fill{color}Specifies the fill color of the element.

Example: Circle with a radius of 20 meters.

http://localhost:3000/api/staticmaps?width=600&height=600&basemap=osm&circle=radius:20|color:4874dbb2|fill:0000bbbd|width:10|48.726304979176675,-3.9829935637739382

Circle Example