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:
commit
bb002dffba
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue