1
0
Fork 0
forked from 0x2620/oxjs

simplify area query, fix async listmap demo

This commit is contained in:
rolux 2011-05-30 08:13:28 +02:00
commit bd592e0056
2 changed files with 54 additions and 49 deletions

View file

@ -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: ''