mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
Merge pull request #2060 from umap-project/georss-link-title
fix: do not append HTML element as title in GeoRSSLink popup
This commit is contained in:
commit
b0c37671a8
1 changed files with 6 additions and 5 deletions
|
@ -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(
|
||||
`<a href="${feature.properties.link}" target="_blank">${title}</a>`
|
||||
)
|
||||
if (feature.properties.link) {
|
||||
return Utils.loadTemplate(
|
||||
`<a href="${feature.properties.link}" target="_blank"><h3>${feature.getDisplayName()}</h3></a>`
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue