Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
includedOverlays = _filter(includedOverlays, overlay => {
if (_isEmpty(overlay.geometry)) { // no geometry indicates global layer
return true
}
return !booleanDisjoint(boundsPoly, getGeom(overlay))
})
}
flattenEach(feature2, (flatten2) => {
if (bool === true) { return true; }
bool = !booleanDisjoint(flatten1.geometry, flatten2.geometry);
});
});
function checkPolygonAgainstOthers(poly, geom, index) {
var polyToCheck = polygon(poly)
for (var i = index + 1; i < geom.length; i++) {
if (!booleanDisjoint(polyToCheck, polygon(geom[i]))) {
if (booleanCrosses(polyToCheck, lineString(geom[i][0]))) return false
}
}
return true
}
return (fieldPolygon: any) => disjoint(fieldPolygon, queryPolygon);
}