forked from 0x2620/oxjs
less obscure Ox.map
This commit is contained in:
parent
33390069b9
commit
12cf77cef5
21 changed files with 125 additions and 101 deletions
|
|
@ -356,11 +356,11 @@
|
|||
ne: {lat: 90, lng: ret.sw.lng}
|
||||
}];
|
||||
function containsGaps(area) {
|
||||
return Ox.map(gaps, function(gap, i) {
|
||||
return Ox.getIndices(gaps, function(gap) {
|
||||
return Ox.containsArea({
|
||||
sw: {lat: -90, lng: area.sw.lng},
|
||||
ne: {lat: 90, lng: area.ne.lng}
|
||||
}, gap) ? i : null;
|
||||
}, gap);
|
||||
});
|
||||
}
|
||||
function intersectsWithGaps(area) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue