diff --git a/layouts/shortcodes/leaflet-layer.html b/layouts/shortcodes/leaflet-layer.html
index 82991fa..002ddcf 100644
--- a/layouts/shortcodes/leaflet-layer.html
+++ b/layouts/shortcodes/leaflet-layer.html
@@ -16,4 +16,7 @@
apiKey: '{{ . }}',
{{ end }}
};
+ {{ with .Get "selectorPosition" }}
+ map_options_{{ $uniqueMapId }}.layers.position = {{ . }};
+ {{ end }}
diff --git a/layouts/shortcodes/leaflet-map.html b/layouts/shortcodes/leaflet-map.html
index 339dbb7..9df8ec0 100644
--- a/layouts/shortcodes/leaflet-map.html
+++ b/layouts/shortcodes/leaflet-map.html
@@ -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: