From 884860ebe048187e222d7fe76493788732b448ad Mon Sep 17 00:00:00 2001 From: Kevin Chang Date: Sun, 29 Jul 2012 15:14:22 -0700 Subject: [PATCH] fix incorrect world coord <-> latlng conversion for orientations other than upper-left --- overviewer_core/data/js_src/util.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/overviewer_core/data/js_src/util.js b/overviewer_core/data/js_src/util.js index e65f253..24dc808 100644 --- a/overviewer_core/data/js_src/util.js +++ b/overviewer_core/data/js_src/util.js @@ -281,15 +281,15 @@ overviewer.util = { if (north_direction == overviewerConfig.CONST.UPPERRIGHT){ temp = x; - x = -z+16; + x = -z+15; z = temp; } else if(north_direction == overviewerConfig.CONST.LOWERRIGHT){ - x = -x+16; - z = -z+16; + x = -x+15; + z = -z+15; } else if(north_direction == overviewerConfig.CONST.LOWERLEFT){ temp = x; x = z; - z = -temp+16; + z = -temp+15; } // This information about where the center column is may change with @@ -370,15 +370,15 @@ overviewer.util = { if(north_direction == overviewerConfig.CONST.UPPERRIGHT){ temp = point.z; - point.z = -point.x+16; + point.z = -point.x+15; point.x = temp; } else if(north_direction == overviewerConfig.CONST.LOWERRIGHT){ - point.x = -point.x+16; - point.z = -point.z+16; + point.x = -point.x+15; + point.z = -point.z+15; } else if(north_direction == overviewerConfig.CONST.LOWERLEFT){ temp = point.z; point.z = point.x; - point.x = -temp+16; + point.x = -temp+15; } return point;