Permalink
Browse files

Added a buttonPosition option to the LocationFilter class

  • Loading branch information...
1 parent 0019537 commit b0a213a74a1a8561feaeec7159bfeec9653c435e @mjakob mjakob committed Mar 12, 2014
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/locationfilter.js
@@ -100,7 +100,8 @@ L.LocationFilter = L.Class.extend({
},
adjustButton: {
text: "Select area within current zoom"
- }
+ },
+ buttonPosition: 'topleft'
},
initialize: function(options) {
@@ -468,7 +469,10 @@ L.LocationFilter = L.Class.extend({
toggles the location filter */
_initializeButtonContainer: function() {
var that = this;
- this._buttonContainer = new L.Control.ButtonContainer({className: "location-filter button-container"});
+ this._buttonContainer = new L.Control.ButtonContainer({
+ className: "location-filter button-container",
+ position: this.options.buttonPosition
+ });
if (this.options.enableButton) {
this._enableButton = new L.Control.Button({

0 comments on commit b0a213a

Please sign in to comment.