diff --git a/source/Ox.UI/js/Map/Ox.Map.js b/source/Ox.UI/js/Map/Ox.Map.js index d133a353..3a73417d 100644 --- a/source/Ox.UI/js/Map/Ox.Map.js +++ b/source/Ox.UI/js/Map/Ox.Map.js @@ -869,7 +869,7 @@ Ox.Map = function(options, self) { type: getType(data.address_components[0].types), west: southWest.lng() }; - if (place.west == -180 && place.east == 180) { + if (Math.abs(place.west) == 180 && Math.abs(place.east) == 180) { place.west = -179.99999999; place.east = 179.99999999; } @@ -902,7 +902,7 @@ Ox.Map = function(options, self) { // see http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingAddressTypes var strings = { 'country': ['country'], - 'region': ['administrative_area', 'colloqual_area'], + 'region': ['administrative_area', 'colloquial_area'], 'city': ['locality'], 'borough': ['neighborhood', 'postal_code', 'sublocality'], 'street': [