mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 08:03:30 +02:00
More _noHas hacks. Will work around this properly at some stage, fixes #60 again.
This commit is contained in:
@@ -714,7 +714,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
//Shared animation code
|
//Shared animation code
|
||||||
_animationAddLayerNonAnimated: function (layer, newCluster) {
|
_animationAddLayerNonAnimated: function (layer, newCluster) {
|
||||||
if (newCluster === layer) {
|
if (newCluster === layer) {
|
||||||
|
layer._noHas = true;
|
||||||
L.FeatureGroup.prototype.addLayer.call(this, layer);
|
L.FeatureGroup.prototype.addLayer.call(this, layer);
|
||||||
|
delete layer._noHas;
|
||||||
} else if (newCluster._childCount === 2) {
|
} else if (newCluster._childCount === 2) {
|
||||||
newCluster._addToMap();
|
newCluster._addToMap();
|
||||||
|
|
||||||
@@ -862,7 +864,9 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
|
|||||||
_animationAddLayer: function (layer, newCluster) {
|
_animationAddLayer: function (layer, newCluster) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
|
layer._noHas = true;
|
||||||
L.FeatureGroup.prototype.addLayer.call(this, layer);
|
L.FeatureGroup.prototype.addLayer.call(this, layer);
|
||||||
|
delete layer._noHas;
|
||||||
if (newCluster !== layer) {
|
if (newCluster !== layer) {
|
||||||
if (newCluster._childCount > 2) { //Was already a cluster
|
if (newCluster._childCount > 2) { //Was already a cluster
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user