From f010baf633c4e650882ca65f82f4be72268f957b Mon Sep 17 00:00:00 2001 From: Martin Rubli Date: Mon, 16 Oct 2023 19:36:26 +0200 Subject: [PATCH] static: css: Place attributions below the map they belong to Previously all attributions were placed below the last map on the page. --- layouts/shortcodes/leaflet-map.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/leaflet-map.html b/layouts/shortcodes/leaflet-map.html index e0dfddf..acae842 100644 --- a/layouts/shortcodes/leaflet-map.html +++ b/layouts/shortcodes/leaflet-map.html @@ -143,7 +143,7 @@ Elevation profile options: // Move the Leaflet attribution out of the map container $('#map_attribution_{{ $uniqueId }}').append( - $('.leaflet-control-attribution') + $('#map_container_{{ $uniqueId }} .leaflet-control-attribution') ); // Restore the map when clicking outside the maximized map