From db41d79ac3377a0bb84e51ba33779e804671e087 Mon Sep 17 00:00:00 2001 From: Oliver Roick Date: Tue, 6 Nov 2018 07:19:59 -0500 Subject: [PATCH] Fix _addLayer, _removeLayer syntax --- src/L.Deflate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/L.Deflate.js b/src/L.Deflate.js index a6c896e..662aa19 100644 --- a/src/L.Deflate.js +++ b/src/L.Deflate.js @@ -125,7 +125,7 @@ L.Deflate = L.FeatureGroup.extend({ return marker }, - _addToMap(layer) { + _addToMap: function(layer) { var layerToAdd = layer; if (this._map.getZoom() <= layer.zoomThreshold) { @@ -160,7 +160,7 @@ L.Deflate = L.FeatureGroup.extend({ } }, - _removeFromMap(layer) { + _removeFromMap: function(layer) { var markerLayer = this.clusterLayer ? this.clusterLayer : this._map; markerLayer.removeLayer(layer); if (layer.marker) { markerLayer.removeLayer(layer.marker); }