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 or file path for a custom marker image.
    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.
    offsetX13.5Horizontal offset for the marker position.
    offsetY27.5Vertical offset for the marker position.
    resizeModecoverApplied resize method if needed. See: https://sharp.pixelplumbing.com/api-resize
Example: Multiple Markers

Markers Example