From: Tom Hughes Date: Mon, 18 Nov 2013 17:41:33 +0000 (+0000) Subject: Update to latest leaflet-locationfilter plugin X-Git-Tag: live~4616 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3bee80e0dce15654f36bcf253f58a6b098e4baa4?hp=049093c5b4ccd1b6f7f5d566eff2c04083e6df4a Update to latest leaflet-locationfilter plugin --- diff --git a/vendor/assets/leaflet/leaflet.locationfilter.js b/vendor/assets/leaflet/leaflet.locationfilter.js index a17f1a5af..9a0af4db4 100644 --- a/vendor/assets/leaflet/leaflet.locationfilter.js +++ b/vendor/assets/leaflet/leaflet.locationfilter.js @@ -114,7 +114,6 @@ L.LocationFilter = L.Class.extend({ onAdd: function(map) { this._map = map; - this._layer = new L.LayerGroup(); if (this.options.enableButton || this.options.adjustButton) { this._initializeButtonContainer(); @@ -285,6 +284,8 @@ L.LocationFilter = L.Class.extend({ return; } + this._layer = new L.LayerGroup(); + // Calculate filter bounds this._calculateBounds();