From c3439ab53911e819517ec3c76974539f643f1575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= <15726+Senen@users.noreply.github.com> Date: Wed, 29 Mar 2023 13:50:56 +0200 Subject: [PATCH] Keep the same attribution as it was in previous versions --- app/assets/javascripts/map.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/map.js b/app/assets/javascripts/map.js index 1489a61c69b..15d558dc266 100644 --- a/app/assets/javascripts/map.js +++ b/app/assets/javascripts/map.js @@ -7,6 +7,9 @@ App.Map.initializeMap(this); }); }, + attributionPrefix: function() { + return 'Leaflet'; + }, destroy: function() { App.Map.maps.forEach(function(map) { map.off(); @@ -118,6 +121,7 @@ }; mapCenterLatLng = new L.LatLng(mapCenterLatitude, mapCenterLongitude); map = L.map(element.id, { scrollWheelZoom: false }).setView(mapCenterLatLng, zoom); + map.attributionControl.setPrefix(App.Map.attributionPrefix()); App.Map.maps.push(map); L.tileLayer(mapTilesProvider, { attribution: mapAttribution