cosmetic changes
This commit is contained in:
parent
2d0fdae171
commit
064c40461e
1 changed files with 4 additions and 4 deletions
|
@ -133,9 +133,9 @@
|
||||||
var pointA = rad(pointA),
|
var pointA = rad(pointA),
|
||||||
pointB = rad(pointB);
|
pointB = rad(pointB);
|
||||||
return Math.acos(
|
return Math.acos(
|
||||||
Math.sin(pointA.lat) * Math.sin(pointB.lat)
|
Math.sin(pointA.lat) * Math.sin(pointB.lat)
|
||||||
+ Math.cos(pointA.lat) * Math.cos(pointB.lat)
|
+ Math.cos(pointA.lat) * Math.cos(pointB.lat)
|
||||||
* Math.cos(pointB.lng - pointA.lng)
|
* Math.cos(pointB.lng - pointA.lng)
|
||||||
) * Ox.EARTH_RADIUS;
|
) * Ox.EARTH_RADIUS;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -214,7 +214,7 @@
|
||||||
@*/
|
@*/
|
||||||
Ox.getXYByLatLng = function(latlng) {
|
Ox.getXYByLatLng = function(latlng) {
|
||||||
function getValue(value) {
|
function getValue(value) {
|
||||||
return (value / (2 * Math.PI) + 0.5);
|
return value / (2 * Math.PI) + 0.5;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
x: getValue(Ox.rad(latlng.lng)),
|
x: getValue(Ox.rad(latlng.lng)),
|
||||||
|
|
Loading…
Reference in a new issue