fix: google maps badge icon not updating
This commit is contained in:
parent
3d7c74b325
commit
2e9620e0d5
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue