Merge pull request #1668 from umap-project/fix-osmid-popup

fix: read id and @id as osm id in osm template
This commit is contained in:
Yohan Boniface 2024-03-01 17:02:20 +01:00 committed by GitHub
commit bb002dffba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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',