This commit is contained in:
rolux 2012-06-19 17:59:31 +02:00
parent 76a540e399
commit 98b7929fc3

View file

@ -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),