diff --git a/layouts/shortcodes/leaflet-layer.html b/layouts/shortcodes/leaflet-layer.html index 2a1e8e9..ea4edfb 100644 --- a/layouts/shortcodes/leaflet-layer.html +++ b/layouts/shortcodes/leaflet-layer.html @@ -9,10 +9,12 @@ {{ $uniqueMapId := (printf "%s:%d" .Page.File.UniqueID .Parent.Ordinal) | md5 | safeJS }} {{ $id := .Get "id" }} +{{ $configId := replace (.Get "id") "." "_" }} +{{ $apiKey := default (index .Site.Params.modules.leaflet $configId "apiKey") (.Get "apiKey") }}