possible fix for coordinate clamping on the right-hand-side of the map
This commit is contained in:
parent
7e3c310543
commit
8984ff0285
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user