mirror of
https://gitlab.com/mrubli/hugo-mod-leaflet.git
synced 2025-10-07 01:54:24 +00:00
layouts: layer: Add selectorPosition parameter
This commit is contained in:
@@ -16,4 +16,7 @@
|
||||
apiKey: '{{ . }}',
|
||||
{{ end }}
|
||||
};
|
||||
{{ with .Get "selectorPosition" }}
|
||||
map_options_{{ $uniqueMapId }}.layers.position = {{ . }};
|
||||
{{ end }}
|
||||
</script>
|
||||
|
@@ -34,6 +34,9 @@ Layer options:
|
||||
(*) API key required
|
||||
apiKey:
|
||||
API key for tile access.
|
||||
selectorPosition:
|
||||
Position of the layer selector button. One of: "topleft", "topright", "bottomleft", "bottomright"
|
||||
Optional, defaults to "bottomleft". If specified for more than one layer, the last one wins.
|
||||
|
||||
Marker options:
|
||||
|
||||
|
Reference in New Issue
Block a user