forked from 0x2620/oxjs
merging changes
This commit is contained in:
commit
b96c85fc9b
2 changed files with 17 additions and 16 deletions
|
|
@ -761,6 +761,22 @@ Ox.Map = function(options, self) {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
Ox.print('QUERY', {
|
||||
conditions: Ox.merge([
|
||||
{key: 'lat', value: [south, north], operator: '-'}
|
||||
], !crossesDateline ? [
|
||||
{key: 'lng', value: [west, east], operator: '-'}
|
||||
] : [
|
||||
{
|
||||
conditions: [
|
||||
{key: 'lng', value: west, operator: '<'},
|
||||
{key: 'lng', value: east, operator: '>'}
|
||||
],
|
||||
operator: '|'
|
||||
}
|
||||
]),
|
||||
operator: '&'
|
||||
});
|
||||
self.options.places({
|
||||
keys: [
|
||||
'id', 'name', 'geoname', 'countryCode',
|
||||
|
|
@ -780,6 +796,7 @@ Ox.Map = function(options, self) {
|
|||
range: [0, self.options.maxMarkers],
|
||||
sort: [{key: 'area', operator: '-'}]
|
||||
}, function(result) {
|
||||
Ox.print('RESULT', result)
|
||||
var ids = [];
|
||||
result.data.items.forEach(function(item, i) {
|
||||
var place = getPlaceById(item.id);
|
||||
|
|
@ -955,7 +972,6 @@ Ox.Map = function(options, self) {
|
|||
{key: 'id', value: id, operator: '='}
|
||||
],
|
||||
operator: ''
|
||||
|
||||
}
|
||||
}, function(results) {
|
||||
place = new Ox.MapPlace(Ox.extend({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue