Update index.html
This commit is contained in:
1 parent
2f215954d7
commit
217979724b
1 file changed
+3
-4
+3
-4
@@ -1030,10 +1030,9 @@
|
|||||||
const lon = position.coords.longitude;
|
const lon = position.coords.longitude;
|
||||||
userPosition = [lat, lon];
|
userPosition = [lat, lon];
|
||||||
|
|
||||||
// Center map on user location
|
// Center map on user location immediately (no animation)
|
||||||
map.setView([lat, lon], 16, {
|
map.setView([lat, lon], 16, {
|
||||||
animate: true,
|
animate: false
|
||||||
duration: 1
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Remove old location marker if exists
|
// Remove old location marker if exists
|
||||||
@@ -1180,4 +1179,4 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user