Fix: improve functionality of GRB-theme (WIP)

This commit is contained in:
Pieter Vander Vennet 2023-05-24 03:26:33 +02:00
parent 66f2999422
commit b86e2910ba
10 changed files with 270 additions and 241 deletions

View file

@ -156,12 +156,14 @@ class IntersectionFunc implements ExtraFunction {
if (otherLayers.length === 0) {
continue
}
for (const otherFeature of otherLayers) {
const intersections = GeoOperations.LineIntersections(feat, <any> otherFeature)
if (intersections.length === 0) {
continue
for (const otherFeatures of otherLayers) {
for (const otherFeature of otherFeatures) {
const intersections = GeoOperations.LineIntersections(feat, <Feature<any, Record<string, string>>>otherFeature)
if (intersections.length === 0) {
continue
}
result.push({feat: otherFeature, intersections})
}
result.push({feat: otherFeature, intersections})
}
}