From 103893def2a04b5ea1fd8353db650b6e9800b408 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 1 Mar 2024 16:05:41 +0100 Subject: [PATCH] fix: read id and @id as osm id in osm template cf #1663 --- umap/static/umap/js/umap.popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.popup.js b/umap/static/umap/js/umap.popup.js index 0ab65b1e..035a7501 100644 --- a/umap/static/umap/js/umap.popup.js +++ b/umap/static/umap/js/umap.popup.js @@ -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',