diff --git a/components/MapComponent.js b/components/MapComponent.js index f391e3382..979bfffbc 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -197,9 +197,10 @@ const MapComponent = ({ locations, onLocationUpdate }) => { }, []); // Dependency-Array ist leer, um den Effekt nur beim Mount auszuführen //------------------------------------------ - const offlineTileLayer = "../TileMap/mapTiles/{z}/{x}/{y}.png"; - //const onlineTileLayer = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"; - const onlineTileLayer = "mapTiles/{z}/{x}/{y}.png"; + const offlineTileLayer = "../TileMap/mapTiles/{z}/{x}/{y}.png"; // ich habe kein mapTiles lokal + const onlineTileLayer = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"; + //const onlineTileLayer = "mapTiles/{z}/{x}/{y}.png"; // auf dem Server local + //const onlineTileLayer = "TileMap/mapTiles/{z}/{x}/{y}.png"; // Create map layers const TALAS = new L.layerGroup(); const ECI = new L.layerGroup(); @@ -389,7 +390,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => { const popupContent = L.DomUtil.create("div"); popupContent.innerHTML = `