From 8984ff028575315749480dace7909da866547f71 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 26 Aug 2013 17:43:27 +0100 Subject: [PATCH] possible fix for coordinate clamping on the right-hand-side of the map --- code/utils_misc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/utils_misc.js b/code/utils_misc.js index 205d9200..a7ee1fc6 100644 --- a/code/utils_misc.js +++ b/code/utils_misc.js @@ -494,8 +494,8 @@ window.clampLat = function(lat) { } window.clampLng = function(lng) { - if (lng > 180.0) - lng = 180.0 + if (lng > 179.999999) + lng = 179.999999; else if (lng < -180.0) lng = -180.0; return lng;