forked from 0x2620/oxjs
simplify area query, fix async listmap demo
This commit is contained in:
parent
b9ab4a0adf
commit
bd592e0056
2 changed files with 54 additions and 49 deletions
|
|
@ -773,18 +773,12 @@ Ox.Map = function(options, self) {
|
|||
], !crossesDateline ? [
|
||||
{key: 'lng', value: [west, east], operator: '-'}
|
||||
] : [
|
||||
{
|
||||
conditions: [
|
||||
{key: 'lng', value: west, operator: '<'},
|
||||
{key: 'lng', value: east, operator: '>'}
|
||||
],
|
||||
operator: '|'
|
||||
}
|
||||
{key: 'lng', value: [east, west], operator: '!-'}
|
||||
]),
|
||||
operator: '&'
|
||||
},
|
||||
range: [0, self.options.maxMarkers],
|
||||
sort: [{key: 'area', operator: '+'}]
|
||||
sort: [{key: 'area', operator: '-'}]
|
||||
}, function(result) {
|
||||
var ids = [];
|
||||
result.data.items.forEach(function(item, i) {
|
||||
|
|
@ -958,7 +952,7 @@ Ox.Map = function(options, self) {
|
|||
self.options.places({
|
||||
query: {
|
||||
conditions: [
|
||||
{key: 'id', value: id, operator: '^$'}
|
||||
{key: 'id', value: id, operator: '='}
|
||||
],
|
||||
operator: ''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue