Update to latest leaflet-locationfilter plugin
authorTom Hughes <tom@compton.nu>
Fri, 23 May 2014 09:48:39 +0000 (10:48 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 23 May 2014 09:48:39 +0000 (10:48 +0100)
vendor/assets/leaflet/leaflet.locationfilter.js

index 9a0af4db4e59bd17215d7ddfd11029eecbaed317..d120adc30f2e0baa85d6187d2d28ef6b5c28f269 100644 (file)
@@ -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({