diff --git a/layouts/shortcodes/leaflet-elevation-profile.html b/layouts/shortcodes/leaflet-elevation-profile.html index 72a984f..c909497 100644 --- a/layouts/shortcodes/leaflet-elevation-profile.html +++ b/layouts/shortcodes/leaflet-elevation-profile.html @@ -10,5 +10,23 @@ {{ with .Get "resizable" }} resizable: {{ . }}, {{ end }} + {{ with .Get "width" }} + width: {{ . }}, + {{ end }} + {{ with .Get "height" }} + height: {{ . }}, + {{ end }} + {{ with .Get "minWidth" }} + minWidth: {{ . }}, + {{ end }} + {{ with .Get "minHeight" }} + minHeight: {{ . }}, + {{ end }} + {{ with .Get "maxWidth" }} + maxWidth: {{ . }}, + {{ end }} + {{ with .Get "maxHeight" }} + maxHeight: {{ . }}, + {{ end }} }; diff --git a/layouts/shortcodes/leaflet-map.html b/layouts/shortcodes/leaflet-map.html index f13e18d..e0dfddf 100644 --- a/layouts/shortcodes/leaflet-map.html +++ b/layouts/shortcodes/leaflet-map.html @@ -59,6 +59,24 @@ Elevation profile options: resizable: Boolean value indicating whether the elevation profile box should be drag & drop resizable. Optional, defaults to false. + width: + Width of the elevation profile. + Optional, defaults to 360. + height: + Height of the elevation profile. + Optional, defaults to 180. + minWidth: + Minimum width of the elevation profile if resizable. + Optional. + minHeight: + Minimum height of the elevation profile if resizable. + Optional. + maxWidth: + Maximum width of the elevation profile if resizable. + Optional. + maxHeight: + Maximum height of the elevation profile if resizable. + Optional. Note: Elevation profiles are only supported if exactly one track is present.