Skip to content

Commit

Permalink
Ta bort Leaflet attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
bonny committed May 11, 2024
1 parent 135ecf6 commit b8bc003
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions resources/views/components/events-map.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
html.innerHTML = '';
var expandButton = L.DomUtil.create('button', 'EventsMap-control-expand', html);
// var buttonText = L.DomUtil.create('span', '', expandButton);
// buttonText.innerText = 'Expandera karta';
var img = L.DomUtil.create('img', 'leaflet-control-watermark', expandButton);
img.src = '/img/expand_content_24dp_FILL0_wght400_GRAD0_opsz24.svg';
Expand Down Expand Up @@ -94,7 +96,10 @@ class EventsMap {
console.log('EventsMap.initMap:', this.mapContainer);
// Init in Jönköping
let map = L.map(this.mapContainer);
let map = L.map(this.mapContainer, {
zoomControl: false,
attributionControl: false,
});
this.map = map;
window.map = map;
Expand All @@ -111,7 +116,7 @@ class EventsMap {
}).addTo(map);
L.control.watermark({
position: 'topright'
position: 'bottomright'
}).addTo(map);
}
}
Expand Down

0 comments on commit b8bc003

Please sign in to comment.