diff --git a/projects/project-2/aufgabe2.js b/projects/project-2/aufgabe2.js index 1e51397..2a7aab3 100644 --- a/projects/project-2/aufgabe2.js +++ b/projects/project-2/aufgabe2.js @@ -2,31 +2,31 @@ const aufgabe2 = () => { const markerIcons = { food: L.icon({ iconUrl: 'markers/food.png', - iconSize: [50, 50], // size of the icon - iconAnchor: [20, 50], // point of the icon which will correspond to marker's location - popupAnchor: [3, -50] // point from which the popup should open relative to the iconAnchor + iconSize: [60, 60], + iconAnchor: [30, 60], + popupAnchor: [0, -53] }), culture: L.icon({ - iconUrl: 'markers/museum.png', - iconSize: [50, 50], // size of the icon - iconAnchor: [20, 50], // point of the icon which will correspond to marker's location - popupAnchor: [3, -50] // point from which the popup should open relative to the iconAnchor + iconUrl: 'markers/culture.png', + iconSize: [60, 60], + iconAnchor: [30, 60], + popupAnchor: [0, -53] }), nature: L.icon({ - iconUrl: 'markers/nature.png', - iconSize: [40, 48], // size of the icon - iconAnchor: [20, 56], // point of the icon which will correspond to marker's location - popupAnchor: [3, -50] // point from which the popup should open relative to the iconAnchor + iconUrl: 'markers/landscape.png', + iconSize: [60, 60], + iconAnchor: [30, 60], + popupAnchor: [0, -53] }), train: L.icon({ iconUrl: 'markers/train.png', - iconSize: [60, 60], // size of the icon - iconAnchor: [25, 55], // point of the icon which will correspond to marker's location - popupAnchor: [3, -45] // point from which the popup should open relative to the iconAnchor + iconSize: [60, 60], + iconAnchor: [30, 60], + popupAnchor: [0, -53] }) } - map = L.map('poiMap').setView([48.779694, 9.177015], 14); + let map = L.map('poiMap').setView([48.779694, 9.177015], 14); map.addLayer(new L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: 'Map data OpenStreetMap contributors', minZoom: 1, diff --git a/projects/project-2/markers/marker_culture.png b/projects/project-2/markers/culture.png similarity index 100% rename from projects/project-2/markers/marker_culture.png rename to projects/project-2/markers/culture.png diff --git a/projects/project-2/markers/food.png b/projects/project-2/markers/food.png index a558a4f..d4bae0c 100644 Binary files a/projects/project-2/markers/food.png and b/projects/project-2/markers/food.png differ diff --git a/projects/project-2/markers/marker_landscape.png b/projects/project-2/markers/landscape.png similarity index 100% rename from projects/project-2/markers/marker_landscape.png rename to projects/project-2/markers/landscape.png diff --git a/projects/project-2/markers/marker_food.png b/projects/project-2/markers/marker_food.png deleted file mode 100644 index d4bae0c..0000000 Binary files a/projects/project-2/markers/marker_food.png and /dev/null differ diff --git a/projects/project-2/markers/marker_train.png b/projects/project-2/markers/marker_train.png deleted file mode 100644 index 419a6b5..0000000 Binary files a/projects/project-2/markers/marker_train.png and /dev/null differ diff --git a/projects/project-2/markers/museum.png b/projects/project-2/markers/museum.png deleted file mode 100644 index d125c99..0000000 Binary files a/projects/project-2/markers/museum.png and /dev/null differ diff --git a/projects/project-2/markers/nature.png b/projects/project-2/markers/nature.png deleted file mode 100644 index 119806e..0000000 Binary files a/projects/project-2/markers/nature.png and /dev/null differ diff --git a/projects/project-2/markers/train.png b/projects/project-2/markers/train.png index 4f76064..419a6b5 100644 Binary files a/projects/project-2/markers/train.png and b/projects/project-2/markers/train.png differ