fix: google maps badge icon not updating

This commit is contained in:
Nicole 2025-11-19 21:44:04 +01:00
parent 3d7c74b325
commit 2e9620e0d5

View file

@ -606,7 +606,7 @@ function updateMarkerGoogle(entityId, data, lat, lon, personState, activityState
marker.setPosition(position); marker.setPosition(position);
// Update the custom overlay content // Update the custom overlay content
const overlayDiv = marker.overlayDiv; const overlayDiv = marker.div;
if (overlayDiv) { if (overlayDiv) {
overlayDiv.innerHTML = createMarkerHTML(personState, activityState, pictureUrl); overlayDiv.innerHTML = createMarkerHTML(personState, activityState, pictureUrl);
} }
@ -705,7 +705,6 @@ function updateMarkerGoogle(entityId, data, lat, lon, personState, activityState
}); });
marker.infoWindow = infoWindow; marker.infoWindow = infoWindow;
marker.overlayDiv = marker.div;
markers[entityId] = marker; markers[entityId] = marker;
} }