typo
This commit is contained in:
parent
76a540e399
commit
98b7929fc3
1 changed files with 2 additions and 2 deletions
|
@ -224,12 +224,12 @@ Ox.api = function(items, options) {
|
||||||
east: data.area.ne.lng
|
east: data.area.ne.lng
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
data.area = items.length == 0 ? {
|
data.area = data.items.length == 0 ? {
|
||||||
south: -Ox.MAX_LATITUDE,
|
south: -Ox.MAX_LATITUDE,
|
||||||
west: -180,
|
west: -180,
|
||||||
north: Ox.MAX_LATITUDE,
|
north: Ox.MAX_LATITUDE,
|
||||||
east: 180
|
east: 180
|
||||||
} : items.reduce(function(prev, curr) {
|
} : data.items.reduce(function(prev, curr) {
|
||||||
return {
|
return {
|
||||||
south: Ox.min(prev.south, curr.south),
|
south: Ox.min(prev.south, curr.south),
|
||||||
west: Ox.min(prev.west, curr.west),
|
west: Ox.min(prev.west, curr.west),
|
||||||
|
|
Loading…
Reference in a new issue