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="[{"coordinates":[44.8425666,-0.5737107]},{"coordinates":[45.8425666,1.5937107]}]"
></div>
Datas
location: [] // array of markers
marker_hidden: false // boolean (optional)
zoom: "" // int (optional)