mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
fix: do not append HTML element as title in GeoRSSLink popup
This commit is contained in:
parent
5a33709cc9
commit
bc34851def
1 changed files with 6 additions and 5 deletions
|
@ -137,13 +137,14 @@ class GeoRSSImage extends TitleMixin(PopupTemplate) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class GeoRSSLink extends TitleMixin(PopupTemplate) {
|
class GeoRSSLink extends PopupTemplate {
|
||||||
renderBody(feature, container) {
|
renderBody(feature, container) {
|
||||||
const title = this.renderTitle(feature, container)
|
if (feature.properties.link) {
|
||||||
return Utils.loadTemplate(
|
return Utils.loadTemplate(
|
||||||
`<a href="${feature.properties.link}" target="_blank">${title}</a>`
|
`<a href="${feature.properties.link}" target="_blank"><h3>${feature.getDisplayName()}</h3></a>`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class OSM extends TitleMixin(PopupTemplate) {
|
class OSM extends TitleMixin(PopupTemplate) {
|
||||||
|
|
Loading…
Reference in a new issue