diff --git a/layouts/shortcodes/leaflet-map.html b/layouts/shortcodes/leaflet-map.html index acae842..2af1c3f 100644 --- a/layouts/shortcodes/leaflet-map.html +++ b/layouts/shortcodes/leaflet-map.html @@ -2,7 +2,7 @@ Syntax summary: - {{< leaflet-map centerLat=FLOAT centerLon=FLOAT zoom=INT >}} + {{< leaflet-map centerLat=FLOAT centerLon=FLOAT zoom=INT width="STRING" height="STRING" >}} {{< leaflet-layer id="STRING" apiKey="STRING" >}} @@ -22,6 +22,12 @@ Map options: Center point coordinates of the map as decimal values. Optional iif tracks or markers are given. zoom: Zoom level of the map. Optional iif tracks or markers are given. + width: + Width of the map, including CSS units (e.g. "50%", "300px"). + Optional, defaults to "600px". + height: + Height of the map, including CSS units (e.g. "50%", "300px"). + Optional, defaults to "400px". Layer options: @@ -84,7 +90,7 @@ Elevation profile options: {{ $uniqueId := .Ordinal | safeJS }} -