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 f96f54d commit 9564c86Copy full SHA for 9564c86
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