possible fix for coordinate clamping on the right-hand-side of the map

This commit is contained in:
Jon Atkins 2013-08-26 17:43:27 +01:00
parent 7e3c310543
commit 8984ff0285

View File

@ -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;