layouts: map: Add option to make map non-maximizable

This commit is contained in:
Martin Rubli
2023-10-23 23:44:39 +02:00
parent 440f144cb9
commit 8258a580e7

View File

@@ -2,7 +2,7 @@
Syntax summary:
{{< leaflet-map centerLat=FLOAT centerLon=FLOAT zoom=INT width="STRING" height="STRING" resizable=BOOL >}}
{{< leaflet-map centerLat=FLOAT centerLon=FLOAT zoom=INT width="STRING" height="STRING" resizable=BOOL maximizable=BOOL >}}
{{< leaflet-layer id="STRING" apiKey="STRING" >}}
@@ -31,6 +31,9 @@ Map options:
resizable:
Boolean value indicating whether the map should be drag & drop resizable.
Optional, defaults to true.
maximizable:
Boolean value indicating whether the maximize button should be displayed.
Optional, defaults to true.
Layer options:
@@ -111,6 +114,9 @@ Elevation profile options:
enabled: [],
},
scale: false,
maximize: {
enabled: {{ .Get "maximizable" | default "true" }},
},
markers: [],
tracks: [],
heightgraph: null,