typo
This commit is contained in:
parent
23c50a1d01
commit
1e1bfa6ce3
1 changed files with 2 additions and 2 deletions
|
@ -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': [
|
||||
|
|
Loading…
Reference in a new issue