From 013d12e7b31ad6be74e2510ca7427a11edf765db Mon Sep 17 00:00:00 2001 From: frankporras Date: Tue, 10 Sep 2024 16:23:20 +0200 Subject: [PATCH] Attribution in minimap corrected --- src/components/minimap/Minimap.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/minimap/Minimap.ts b/src/components/minimap/Minimap.ts index 5bdb079..35092db 100644 --- a/src/components/minimap/Minimap.ts +++ b/src/components/minimap/Minimap.ts @@ -24,6 +24,9 @@ export default class Minimap extends Vue { maxBoundsViscosity: 1.0 // Ensure the map cannot be dragged outside the bounds }); + // Remove Leaflet logo and text + map.attributionControl.setPrefix(false); + const basemapAtLayer = L.tileLayer('https://maps{s}.wien.gv.at/basemap/geolandbasemap/normal/google3857/{z}/{y}/{x}.png', { attribution: 'basemap.at', noWrap: true, @@ -31,11 +34,11 @@ export default class Minimap extends Vue { }).addTo(map); const esriImageryLayer = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', { - attribution: 'Tiles © Esri' + attribution: 'Tiles © Esri' }); const esriTopoLayer = L.tileLayer('https://server.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}', { - attribution: 'Tiles © Esri' + attribution: 'Tiles © Esri' }); const baseMaps = { @@ -52,7 +55,7 @@ export default class Minimap extends Vue { if (southWest[0] === northEast[0] || southWest[1] === northEast[1]) { // If y_min and y_max (and x_min and x_max) are equal, generate a circle const center = [southWest[0], southWest[1]] as [number, number]; -// Using CircleMarker to maintain constant size regardless of zoom level + // Using CircleMarker to maintain constant size regardless of zoom level const circleMarker = L.circleMarker(center, { color: '#30D5C8', // Outline color fillColor: '#336699', // Fill color