Skip to content

Commit bfe926b

Browse files
author
6eau
committed
Updated default map view to SF Bay Area and closer zoom
1 parent 39f0bb8 commit bfe926b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

js/tracker.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,16 +786,18 @@ function clean_refresh(text, force, history_step) {
786786
function load() {
787787
//initialize map object
788788
map = new L.map(document.getElementById('map'), {
789-
zoom: 5,
789+
zoom: 8,
790790
zoomControl: false,
791791
zoomAnimationThreshold: 0,
792-
center: [53.467511,-2.233894],
792+
center: [37.64,-122.06],
793793
layers: baseMaps[selectedLayer],
794794
worldCopyJump: true,
795795
preferCanvas: true,
796796
});
797797

798-
map.setView([53.467511,-2.233894], 5, {animate: false});
798+
// TODO: Default to users region, patched to SF Bay default, zoom to 8 (5 default)
799+
800+
map.setView([37.64,-122.06], 8, {animate: false});
799801

800802
// fullscreen button
801803
map.addControl(new L.Control.Fullscreen({ position: 'bottomleft' }));

0 commit comments

Comments
 (0)