UX(inspector): fix search, show graphs, see #2353

This commit is contained in:
Pieter Vander Vennet 2025-04-25 18:04:25 +02:00
parent 0ae58a740c
commit 4e5f32139e
6 changed files with 95 additions and 31 deletions

View file

@ -330,6 +330,9 @@ ${nds}${tags} </way>
}
private isPolygon(): boolean {
if (this.coordinates.length === 0) {
return false
}
// Compare lat and lon seperately, as the coordinate array might not be a reference to the same object
if (
this.coordinates[0][0] !== this.coordinates[this.coordinates.length - 1][0] ||