From 6a0bc9443bc45b193cb61ce96bfa417167c1baf3 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 5 Dec 2024 11:57:48 +0100 Subject: [PATCH] feat: display an image from Panoramax in OSM template when tag is defined --- umap/static/umap/js/modules/rendering/template.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/umap/static/umap/js/modules/rendering/template.js b/umap/static/umap/js/modules/rendering/template.js index 171b2419..7300c40b 100644 --- a/umap/static/umap/js/modules/rendering/template.js +++ b/umap/static/umap/js/modules/rendering/template.js @@ -207,6 +207,13 @@ class OSM extends TitleMixin(PopupTemplate) { Utils.loadTemplate(`
${email}
`) ) } + if (props.panoramax) { + body.appendChild( + Utils.loadTemplate( + `
` + ) + ) + } const id = props['@id'] || props.id if (id) { body.appendChild(