diff --git a/source/Ox/js/Geo.js b/source/Ox/js/Geo.js index cc5759d9..c2728176 100644 --- a/source/Ox/js/Geo.js +++ b/source/Ox/js/Geo.js @@ -133,9 +133,9 @@ var pointA = rad(pointA), pointB = rad(pointB); return Math.acos( - Math.sin(pointA.lat) * Math.sin(pointB.lat) - + Math.cos(pointA.lat) * Math.cos(pointB.lat) - * Math.cos(pointB.lng - pointA.lng) + Math.sin(pointA.lat) * Math.sin(pointB.lat) + + Math.cos(pointA.lat) * Math.cos(pointB.lat) + * Math.cos(pointB.lng - pointA.lng) ) * Ox.EARTH_RADIUS; }; @@ -214,7 +214,7 @@ @*/ Ox.getXYByLatLng = function(latlng) { function getValue(value) { - return (value / (2 * Math.PI) + 0.5); + return value / (2 * Math.PI) + 0.5; } return { x: getValue(Ox.rad(latlng.lng)),