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: '{{ . }}',
|
apiKey: '{{ . }}',
|
||||||
{{ end }}
|
{{ end }}
|
||||||
};
|
};
|
||||||
|
{{ with .Get "selectorPosition" }}
|
||||||
|
map_options_{{ $uniqueMapId }}.layers.position = {{ . }};
|
||||||
|
{{ end }}
|
||||||
</script>
|
</script>
|
||||||
|
@@ -34,6 +34,9 @@ Layer options:
|
|||||||
(*) API key required
|
(*) API key required
|
||||||
apiKey:
|
apiKey:
|
||||||
API key for tile access.
|
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:
|
Marker options:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user