Skip to content

Commit

Permalink
Implement #21
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed May 1, 2024
1 parent e895a50 commit 9b18c0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,12 @@
selected_box = [latlngToMercator({lat: +arr[0], lng: +arr[1]}), latlngToMercator({lat: +arr[2], lng: +arr[3]})];
showReport();
}
} else {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(position => {
map.setView([position.coords.latitude, position.coords.longitude]);
});
}
}

/// Sequential loading for different levels of details
Expand Down

0 comments on commit 9b18c0e

Please sign in to comment.