osmcha-frontend icon indicating copy to clipboard operation
osmcha-frontend copied to clipboard

Node added to way is not shown

Open danieldegroot2 opened this issue 8 months ago • 2 comments

See https://github.com/drolbr/Overpass-API/issues/748

danieldegroot2 avatar Apr 12 '25 12:04 danieldegroot2

~~Can you post a link to a changeset on OSMCha that exhibits this issue? And if possible also a screenshot showing what you see on the map, along with a description of what you expect to see?~~

Edit: I see now that you did include an example changeset in the linked issue. https://osmcha.org/changesets/164792488

The augmented diff for that changeset (https://adiffs.osmcha.org/changesets/164792488.adiff) looks correct at a glance, so this may be a bug in maplibre-adiff-viewer. I'll investigate further.

jake-low avatar Apr 28 '25 21:04 jake-low

I think that this issue is in maplibre-adiff-viewer's bounds() function. The changeset on OSMCha is actually rendered correctly, it's just that it's not zoomed to the right area. If you view the linked changeset, select the "Geometry changes" tab, and click on the ID of the modified way, the map will zoom to show it. The problem is that maplibre-adiff-viewer ignores geometry-only changes when creating a bounding box, but if the changeset contains only geometry changes, then this will fail, and the map view will be zoomed out to show the entire world when it first loads.

jake-low avatar Apr 28 '25 21:04 jake-low