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),
|
type: getType(data.address_components[0].types),
|
||||||
west: southWest.lng()
|
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.west = -179.99999999;
|
||||||
place.east = 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
|
// see http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingAddressTypes
|
||||||
var strings = {
|
var strings = {
|
||||||
'country': ['country'],
|
'country': ['country'],
|
||||||
'region': ['administrative_area', 'colloqual_area'],
|
'region': ['administrative_area', 'colloquial_area'],
|
||||||
'city': ['locality'],
|
'city': ['locality'],
|
||||||
'borough': ['neighborhood', 'postal_code', 'sublocality'],
|
'borough': ['neighborhood', 'postal_code', 'sublocality'],
|
||||||
'street': [
|
'street': [
|
||||||
|
|
Loading…
Reference in a new issue