1
0
Fork 0
forked from 0x2620/oxjs

less obscure Ox.map

This commit is contained in:
rolux 2012-05-22 16:29:37 +02:00
commit 12cf77cef5
21 changed files with 125 additions and 101 deletions

View file

@ -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) {