fix min/max longitude

This commit is contained in:
rolux 2012-06-19 18:04:48 +02:00
parent 7c2f8aa967
commit 178e2bc487

View file

@ -226,9 +226,9 @@ Ox.api = function(items, options) {
*/
data.area = data.items == 0 ? {
south: -Ox.MAX_LATITUDE,
west: -180,
west: -179,
north: Ox.MAX_LATITUDE,
east: 180
east: 179
} : result.data.items.reduce(function(prev, curr) {
return {
south: Math.min(prev.south, curr.south),