Update to latest leaflet-locationfilter plugin

This commit is contained in:
Tom Hughes 2013-11-18 17:41:33 +00:00
parent 049093c5b4
commit 3bee80e0dc

View file

@ -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();