From bc34851def1b9ef45d8e27de03db0a2fdcd2d9ca Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 15 Aug 2024 10:17:43 +0200 Subject: [PATCH] fix: do not append HTML element as title in GeoRSSLink popup --- umap/static/umap/js/modules/rendering/template.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/umap/static/umap/js/modules/rendering/template.js b/umap/static/umap/js/modules/rendering/template.js index e320356e..a90ae6ce 100644 --- a/umap/static/umap/js/modules/rendering/template.js +++ b/umap/static/umap/js/modules/rendering/template.js @@ -137,12 +137,13 @@ class GeoRSSImage extends TitleMixin(PopupTemplate) { } } -class GeoRSSLink extends TitleMixin(PopupTemplate) { +class GeoRSSLink extends PopupTemplate { renderBody(feature, container) { - const title = this.renderTitle(feature, container) - return Utils.loadTemplate( - `${title}` - ) + if (feature.properties.link) { + return Utils.loadTemplate( + `

${feature.getDisplayName()}

` + ) + } } }