Move mapbox-gl controls to the left side of the screen
This commit is contained in:
parent
e1ded04c9b
commit
771fd271c2
@ -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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user