Fix -180 is not equal to 180

This commit is contained in:
Victor Shcherb 2016-05-31 22:15:18 +02:00
parent 4078564b54
commit 1377d4eedc

View file

@ -120,7 +120,7 @@ public class MapUtils {
}
public static double checkLongitude(double longitude) {
if (longitude > MIN_LONGITUDE && longitude <= MAX_LONGITUDE) {
if (longitude >= MIN_LONGITUDE && longitude <= MAX_LONGITUDE) {
return longitude;
}
while (longitude <= MIN_LONGITUDE || longitude > MAX_LONGITUDE) {