forked from 0x2620/oxjs
get rid of special 'area' parameter, use 'query' parameter
This commit is contained in:
parent
4eb1b99c76
commit
981e3889da
2 changed files with 32 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue