Skip to content

Commit bc7d949

Browse files
committed
jump to user location
1 parent 79e3520 commit bc7d949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ $(window).ready(function() {
860860
// open map
861861
$('.nav .home').click();
862862
// pan map to our current location
863-
map.flyTo(new L.LatLng(currentPosition.lat, currentPosition.lon));
863+
map.panTo(new L.LatLng(currentPosition.lat, currentPosition.lon));
864864
} else {
865865
alert("No position available");
866866
}

0 commit comments

Comments
 (0)