Skip to content

Commit

Permalink
Fix _addLayer, _removeLayer syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed Nov 6, 2018
1 parent 1b4698b commit db41d79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/L.Deflate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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); }
Expand Down

0 comments on commit db41d79

Please sign in to comment.