Skip to main content

Markers

To add one or more markers, use the markers parameter in this format:

markers=markerStyle|markerCoord1|markerCoord2|...
  • markerCoord: Coordinates for each marker in lat, lon format, separated by |. You need at least one coordinate.

  • markerStyle: Customize the marker with:

    ParameterDefaultDescription
    img(optional)URL of a custom marker image. Rejected if the host resolves to a private or internal address (see Configuration). If omitted, a colored pin is drawn instead.
    color#d9534fColor of the Marker.
    width28Width of marker image in px.
    height28Height of marker image in px.
    drawWidthwidthResize marker image to width in px.
    drawHeightheightResize marker image to height in px.
    offsetX14Horizontal offset for the marker position.
    offsetY28Vertical offset for the marker position.
    resizeModecoverApplied resize method if needed. See: https://sharp.pixelplumbing.com/api-resize
Example: Multiple Markers

Markers Example