1
0
Fork 0
forked from 0x2620/oxjs

get rid of special 'area' parameter, use 'query' parameter

This commit is contained in:
rolux 2011-05-29 22:23:16 +02:00
commit 981e3889da
2 changed files with 32 additions and 13 deletions

View file

@ -75,11 +75,13 @@ Ox.load('Geo', function() {
// query, sort, range, area
if (Ox.isEmpty(options)) {
data = {
items: places.length,
south: 90,
west: 180,
north: -90,
east: -180
area: {
south: 90,
west: 180,
north: -90,
east: -180
},
items: places.length
};
places.forEach(function(place) {
['south', 'west', 'north', 'east'].forEach(function(v) {