This commit is contained in:
@@ -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', {
|
||||||
|
|||||||
Reference in New Issue
Block a user