use correct OSM type for edit link
This commit is contained in:
parent
a7cfe36b2e
commit
306ed2ae0e
@ -220,6 +220,7 @@ export class OverpassLayer {
|
||||
query: query,
|
||||
icon: `overpass-${query}`,
|
||||
tags: element.tags,
|
||||
type: element.type,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@ -35,7 +35,8 @@
|
||||
<Button
|
||||
class="ml-auto p-1.5 h-8"
|
||||
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"
|
||||
>
|
||||
<PencilLine size="16" />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user