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