Map

Displays an openstreetmap with markers.

Example

Usage

{{ $args := (dict
    "location" (slice (dict "coordinates" "[44.8425666,-0.5737107]" "coordinates" "[45.8425666,1.5937107]"))
    ) }}
{{ partial "commons/map.html" $args }}

HTML rendered

<div
  class="map js-map"
  data-markers="[{&quot;coordinates&quot;:[44.8425666,-0.5737107]},{&quot;coordinates&quot;:[45.8425666,1.5937107]}]"
></div>

Datas

location: [] // array of markers
marker_hidden: false // boolean (optional)
zoom: "" // int (optional)