Skip to content

Commit

Permalink
Don't add an empty button container to the map
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Nov 4, 2012
1 parent 353586e commit 059e63a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/locationfilter.js
Expand Up @@ -477,6 +477,8 @@ L.LocationFilter = L.Class.extend({
}).addTo(this._buttonContainer);
}

this._buttonContainer.addTo(this._map);
if (this.options.enableButton || this.options.adjustButton) {
this._buttonContainer.addTo(this._map);
}
}
});

0 comments on commit 059e63a

Please sign in to comment.