mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
feat: display an image from Panoramax in OSM template when tag is defined
This commit is contained in:
parent
4949fcb4a4
commit
6a0bc9443b
1 changed files with 7 additions and 0 deletions
|
@ -207,6 +207,13 @@ class OSM extends TitleMixin(PopupTemplate) {
|
|||
Utils.loadTemplate(`<div><a href="mailto:${email}">${email}</a></div>`)
|
||||
)
|
||||
}
|
||||
if (props.panoramax) {
|
||||
body.appendChild(
|
||||
Utils.loadTemplate(
|
||||
`<div><img src="https://api.panoramax.xyz/api/pictures/${props.panoramax}/sd.jpg" /></div>`
|
||||
)
|
||||
)
|
||||
}
|
||||
const id = props['@id'] || props.id
|
||||
if (id) {
|
||||
body.appendChild(
|
||||
|
|
Loading…
Reference in a new issue