From 771fd271c2c34822992b122d847357476c3b08d0 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 1 Jan 2020 20:08:05 -0700 Subject: [PATCH] Move mapbox-gl controls to the left side of the screen --- www/assets/js/map_mapbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/assets/js/map_mapbox.js b/www/assets/js/map_mapbox.js index 1dccbee..358b54a 100644 --- a/www/assets/js/map_mapbox.js +++ b/www/assets/js/map_mapbox.js @@ -31,7 +31,7 @@ function mapboxMap() { map.addControl(new mapboxgl.NavigationControl({ visualizePitch: true - })); + }), 'top-left'); map.addControl( new mapboxgl.GeolocateControl({ @@ -43,7 +43,7 @@ function mapboxMap() { maxZoom: localStorage.getItem("trackzoom") == null ? 16 : localStorage.getItem("trackzoom") * 1 }, trackUserLocation: true - }) + }), 'top-left' ); map.startLocateControl = function () {