mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Fix zoom but don't change workaround
This commit is contained in:
@@ -185,7 +185,7 @@ L.MarkerCluster = L.Marker.extend({
|
|||||||
//TODO: depthToAnimateIn affects _isSingleParent, if there is a multizoom we may/may not be.
|
//TODO: depthToAnimateIn affects _isSingleParent, if there is a multizoom we may/may not be.
|
||||||
if (c._isSingleParent() /*&& depthToAnimateIn === 1*/) { //TODO: If we are the same as our parent, don't do an animation, just immediately appear
|
if (c._isSingleParent() /*&& depthToAnimateIn === 1*/) { //TODO: If we are the same as our parent, don't do an animation, just immediately appear
|
||||||
c.setOpacity(1);
|
c.setOpacity(1);
|
||||||
c._recursivelyRemoveChildrenFromMap(bounds, depthToAnimateIn); //Immediately remove our children as we are replacing them. TODO previousBounds not bounds
|
c._recursivelyRemoveChildrenFromMap(bounds, depthToAnimateIn - 1); //Immediately remove our children as we are replacing them. TODO previousBounds not bounds
|
||||||
} else {
|
} else {
|
||||||
c.setOpacity(0);
|
c.setOpacity(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user