mirror of
https://gitlab.com/mrubli/hugo-mod-leaflet.git
synced 2025-10-07 18:14:29 +00:00
layouts: map: Add option to make map non-maximizable
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user