From 945da7a06f6e78f584240388682f3956c1de76c9 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 23 May 2014 10:48:39 +0100 Subject: [PATCH 1/1] Update to latest leaflet-locationfilter plugin --- vendor/assets/leaflet/leaflet.locationfilter.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vendor/assets/leaflet/leaflet.locationfilter.js b/vendor/assets/leaflet/leaflet.locationfilter.js index 9a0af4db4..d120adc30 100644 --- a/vendor/assets/leaflet/leaflet.locationfilter.js +++ b/vendor/assets/leaflet/leaflet.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({ -- 2.43.2