mirror of
https://gitlab.com/mrubli/hugo-mod-leaflet.git
synced 2025-10-07 01:54:24 +00:00
layouts: map: Add elevation profile option to not expand graph by default
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
<script>
|
<script>
|
||||||
map_options_{{ $uniqueMapId }}.heightgraph = {
|
map_options_{{ $uniqueMapId }}.heightgraph = {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
expanded: {{ .Get "expanded" | default "false" }},
|
||||||
{{ with .Get "resizable" }}
|
{{ with .Get "resizable" }}
|
||||||
resizable: {{ . }},
|
resizable: {{ . }},
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -65,6 +65,9 @@ Elevation profile options:
|
|||||||
resizable:
|
resizable:
|
||||||
Boolean value indicating whether the elevation profile box should be drag & drop resizable.
|
Boolean value indicating whether the elevation profile box should be drag & drop resizable.
|
||||||
Optional, defaults to false.
|
Optional, defaults to false.
|
||||||
|
expanded:
|
||||||
|
Boolean value indicating whether the elevation profile should be expanded by default.
|
||||||
|
Optional, defaults to true.
|
||||||
width:
|
width:
|
||||||
Width of the elevation profile.
|
Width of the elevation profile.
|
||||||
Optional, defaults to 360.
|
Optional, defaults to 360.
|
||||||
|
Reference in New Issue
Block a user