summaryrefslogtreecommitdiff
path: root/src/leaflet-soton.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/leaflet-soton.js')
-rw-r--r--src/leaflet-soton.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index 931bb3c..98a4f09 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -352,7 +352,8 @@ SELECT * WHERE {\
zoom: 17,
detectRetina: true,
tileUrl: 'http://bus.southampton.ac.uk/graphics/map/tiles/{z}/{x}/{y}.png',
- tileAttribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors'
+ tileAttribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors',
+ levelControlPosition: 'bottomright'
},
initialize: function (id, options) {
@@ -690,7 +691,8 @@ SELECT * WHERE {\
map.levelControl = L.Control.level({
levels: map.indoorLayer.getLevels(),
- level: map._startLevel
+ level: map._startLevel,
+ position: options.levelControlPosition
});
map.levelControl.addEventListener("levelchange", map.indoorLayer.setLevel, map.indoorLayer);