We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ef4286 commit 4fe67bcCopy full SHA for 4fe67bc
js/sondehub.js
@@ -868,6 +868,13 @@ function load() {
868
zoomLevel = 5;
869
}
870
871
+ // load location from browser position if possible
872
+ if (currentPosition){
873
+ console.log(currentPosition)
874
+ coords = [currentPosition.lat, currentPosition.lon]
875
+ zoomLevel = 9;
876
+ }
877
+
878
//initialize map object
879
map = new L.map(document.getElementById('map'), {
880
zoom: zoomLevel,
0 commit comments