From 3bee80e0dce15654f36bcf253f58a6b098e4baa4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 18 Nov 2013 17:41:33 +0000 Subject: [PATCH 1/1] Update to latest leaflet-locationfilter plugin --- vendor/assets/leaflet/leaflet.locationfilter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.43.2