mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Fix not firing animationEnd when we have only one marker in the markerClusterGroup. Fixes #146
This commit is contained in:
@@ -842,13 +842,11 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
|
||||
//If we were in a cluster animation at the time then the opacity and position of our child could be wrong now, so fix it
|
||||
m.setLatLng(m.getLatLng());
|
||||
m.setOpacity(1);
|
||||
|
||||
return;
|
||||
} else {
|
||||
cluster._recursively(bounds, newZoomLevel, 0, function(c) {
|
||||
c._recursivelyRemoveChildrenFromMap(bounds, previousZoomLevel + 1);
|
||||
});
|
||||
}
|
||||
|
||||
cluster._recursively(bounds, newZoomLevel, 0, function (c) {
|
||||
c._recursivelyRemoveChildrenFromMap(bounds, previousZoomLevel + 1);
|
||||
});
|
||||
me._animationEnd();
|
||||
}, 200);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user