From 76d253262fffb80ba5221a7a94865d4bb96a063d Mon Sep 17 00:00:00 2001 From: AuroreC <chayrouse@datakode.fr> Date: Thu, 1 Dec 2022 09:52:55 +0100 Subject: [PATCH] Remove Leaflet attribution --- .../Dashboard/AdminView/Components/MaturityCyberMap.vue | 2 +- resources/js/components/Organizations/Single/PositionBlock.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/components/Dashboard/AdminView/Components/MaturityCyberMap.vue b/resources/js/components/Dashboard/AdminView/Components/MaturityCyberMap.vue index c12a5cbc..91e028ff 100644 --- a/resources/js/components/Dashboard/AdminView/Components/MaturityCyberMap.vue +++ b/resources/js/components/Dashboard/AdminView/Components/MaturityCyberMap.vue @@ -93,10 +93,10 @@ export default { // zoom: 5, // center: [46.9, 1.9], maxZoom: 19, - attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' }).addTo(this.map); this.map.setView([46.9, 1.9], 5); // FRANCE BOUNDS this.map.options.maxZoom = 14; + this.map.attributionControl.setPrefix('') this.initMarkers() }, initMarkers () { diff --git a/resources/js/components/Organizations/Single/PositionBlock.vue b/resources/js/components/Organizations/Single/PositionBlock.vue index 5e128e5c..38634bc7 100644 --- a/resources/js/components/Organizations/Single/PositionBlock.vue +++ b/resources/js/components/Organizations/Single/PositionBlock.vue @@ -32,10 +32,10 @@ export default { L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, - attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' }).addTo(this.map); this.map.setView([46.9, 1.9], 5); // FRANCE BOUNDS + this.map.attributionControl.setPrefix('') }, setMarker (lat, lng) { this.marker = L.circleMarker([lat, lng], {draggable: true, radius: 7,fillColor:'red',fillOpacity:0.5,color: 'red'}) -- GitLab