Fix export location filter button
Upstream pull request: https://github.com/kajic/leaflet-locationfilter/pull/14
This commit is contained in:
parent
4cf32e0f00
commit
637799f1f5
3 changed files with 7 additions and 6 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue