From 064c40461e268cf8aca45919ecac1f997dc00cfb Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 2 Jun 2013 22:15:55 +0200 Subject: [PATCH] cosmetic changes --- source/Ox/js/Geo.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)),