use correct OSM type for edit link

This commit is contained in:
vcoppe
2025-04-11 18:40:16 +02:00
parent a7cfe36b2e
commit 306ed2ae0e
2 changed files with 3 additions and 1 deletions

View File

@@ -220,6 +220,7 @@ export class OverpassLayer {
query: query, query: query,
icon: `overpass-${query}`, icon: `overpass-${query}`,
tags: element.tags, tags: element.tags,
type: element.type,
}, },
}, },
}); });

View File

@@ -35,7 +35,8 @@
<Button <Button
class="ml-auto p-1.5 h-8" class="ml-auto p-1.5 h-8"
variant="outline" variant="outline"
href="https://www.openstreetmap.org/edit?editor=id&node={poi.item.id}" href="https://www.openstreetmap.org/edit?editor=id&{poi.item.type ??
'node'}={poi.item.id}"
target="_blank" target="_blank"
> >
<PencilLine size="16" /> <PencilLine size="16" />