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