Skip to content

Commit e086994

Browse files
authored
Merge pull request #19 from OpenWebconcept/bugfix/pre-demo
Fix Tooltip not working anymore. OWC-92
2 parents 603ab79 + 6ea2eda commit e086994

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

build/blocks/owc-openkaarten/streetmap/client.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/blocks/owc-openkaarten/streetmap/client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/blocks/owc-openkaarten/streetmap/client.js": "/blocks/owc-openkaarten/streetmap/client.js?id=e39b88551aa2bd94c6e6c431b70c3a46",
2+
"/blocks/owc-openkaarten/streetmap/client.js": "/blocks/owc-openkaarten/streetmap/client.js?id=27274f7322b6ebce3dcef6dde1bec7e5",
33
"/blocks/owc-openkaarten/streetmap/style.css": "/blocks/owc-openkaarten/streetmap/style.css?id=0c70cc29722d11466724176fc03cdd58",
44
"/blocks/owc-openkaarten/streetmap/editor.css": "/blocks/owc-openkaarten/streetmap/editor.css?id=f4316f0723fb86e3b028a9b448b1f3ae"
55
}

src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/TheMap.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ const initializeMap = (datasets) => {
124124
location.geometry.coordinates.forEach(coord => {
125125
const pointLatLng = L.latLng(coord[1], coord[0]); // Convert coordinates to LatLng.
126126
const marker = new L.Marker(pointLatLng, { icon });
127-
attachEvents(marker);
127+
attachEvents(marker, location, set);
128128
map.addLayer(marker);
129129
});
130130
} else {
131131
new L.GeoJSON(location, {
132132
pointToLayer: function (feature, latlng) {
133133
const marker = new L.Marker(latlng, { icon });
134-
attachEvents(marker);
134+
attachEvents(marker, location, set);
135135
cluster.addLayer(marker);
136136
}
137137
}).addTo(map);
@@ -146,7 +146,7 @@ const initializeMap = (datasets) => {
146146
});
147147
148148
// Function to attach events
149-
function attachEvents(marker) {
149+
function attachEvents(marker, location, set) {
150150
marker.on('click', () => {
151151
tooltipCard.value = makeTooltipCard(location, set);
152152
});

0 commit comments

Comments
 (0)