Skip to content

Commit 8e96de2

Browse files
round map center coords to 5 decimal places
1 parent 1d34e6b commit 8e96de2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ function lhash_update(history_step) {
2929
}
3030

3131
if(follow_vehicle === null || manual_pan) {
32-
hash += "&mc=" + map.getCenter().toString().replace(/[ )(]/g,'');
32+
var latlng = map.getCenter();
33+
hash += "&mc=" + roundNumber(latlng.lat(), 5) +
34+
"," + roundNumber(latlng.lng(), 5);
3335
}
3436

3537
if(follow_vehicle !== null) {

0 commit comments

Comments
 (0)