layouts: map: Add elevation profile option to not expand graph by default

This commit is contained in:
Martin Rubli
2023-10-22 23:36:44 +02:00
parent e09725f46e
commit 8deb7c4698
2 changed files with 4 additions and 0 deletions

View File

@@ -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 }}

View File

@@ -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.