mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-23 04:28:30 -04:00
Fix the distance to each title. It had to be divided by 60. Fixes #81
This commit is contained in:
parent
91e9c451f9
commit
f5753977ef
@ -409,7 +409,7 @@ define(function(require) {
|
||||
var distanceFromHereHtml = "";
|
||||
if (title._geolocation && currentCoordinates) {
|
||||
// If we know the current position and the title position, we display the distance
|
||||
var distanceKm = (currentCoordinates.distance(title._geolocation) * 6371).toFixed(1);
|
||||
var distanceKm = (currentCoordinates.distance(title._geolocation) * 6371 / 60).toFixed(1);
|
||||
distanceFromHereHtml = " (" + distanceKm + " km)";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user