Copy marker icon
Deploy static content to S3 / deploy (push) Successful in 54s

This commit is contained in:
2026-08-25 10:40:00 +02:00
parent 2be29a68a0
commit b5f09bbeae
+13
View File
@@ -17,6 +17,19 @@ import stops204 from './lines/204.csv';
import stops205 from './lines/205.csv'; import stops205 from './lines/205.csv';
import stops206 from './lines/206.csv'; import stops206 from './lines/206.csv';
import markerIcon2x from 'leaflet/dist/images/marker-icon-2x.png';
import markerIcon from 'leaflet/dist/images/marker-icon.png';
import markerShadow from 'leaflet/dist/images/marker-shadow.png';
// @ts-ignore
delete L.Icon.Default.prototype._getIconUrl;
L.Icon.Default.mergeOptions({
iconRetinaUrl: markerIcon2x,
iconUrl: markerIcon,
shadowUrl: markerShadow
});
let map = L.map('map').setView([53.041883898950985, 8.668813705444338], 13); let map = L.map('map').setView([53.041883898950985, 8.668813705444338], 13);
L.tileLayer('https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png', { L.tileLayer('https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png', {