fix: read id and @id as osm id in osm template

cf #1663
This commit is contained in:
Yohan Boniface 2024-03-01 16:05:41 +01:00
parent 24acd5c42d
commit 103893def2

View file

@ -324,7 +324,7 @@ U.PopupTemplate.OSM = U.PopupTemplate.Default.extend({
L.DomUtil.element('a', { href: `mailto:${email}`, textContent: email })
)
}
const id = props['@id']
const id = props['@id'] || props['id']
if (id) {
L.DomUtil.add(
'div',