mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Build update and JSHint fixes.
This commit is contained in:
Vendored
+11
@@ -115,6 +115,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
|
|
||||||
if (layer._icon) {
|
if (layer._icon) {
|
||||||
L.FeatureGroup.prototype.removeLayer.call(this, layer);
|
L.FeatureGroup.prototype.removeLayer.call(this, layer);
|
||||||
|
layer.setOpacity(1);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
@@ -653,6 +654,16 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
|
|||||||
//When the animations are done, tidy up
|
//When the animations are done, tidy up
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
||||||
|
//This cluster stopped being a cluster before the timeout fired
|
||||||
|
if (cluster._childCount === 1) {
|
||||||
|
var m = cluster._markers[0];
|
||||||
|
//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;
|
||||||
|
}
|
||||||
|
|
||||||
cluster._recursively(bounds, newZoomLevel, 0, function (c) {
|
cluster._recursively(bounds, newZoomLevel, 0, function (c) {
|
||||||
c._recursivelyRemoveChildrenFromMap(bounds, previousZoomLevel + 1);
|
c._recursivelyRemoveChildrenFromMap(bounds, previousZoomLevel + 1);
|
||||||
});
|
});
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -648,7 +648,7 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
||||||
//This cluster stopped being a cluster before the timeout fired
|
//This cluster stopped being a cluster before the timeout fired
|
||||||
if (cluster._childCount == 1) {
|
if (cluster._childCount === 1) {
|
||||||
var m = cluster._markers[0];
|
var m = cluster._markers[0];
|
||||||
//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
|
//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.setLatLng(m.getLatLng());
|
||||||
|
|||||||
Reference in New Issue
Block a user