forked from MapComplete/MapComplete
Fix: improve functionality of GRB-theme (WIP)
This commit is contained in:
parent
66f2999422
commit
b86e2910ba
10 changed files with 270 additions and 241 deletions
|
@ -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})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue