Merge branch 'develop'

This commit is contained in:
Björn Fromme
2022-08-23 11:37:47 +02:00
2 changed files with 4 additions and 10 deletions
@@ -36,15 +36,9 @@ export default class extends Controller {
for (let item of this.markersValue) { for (let item of this.markersValue) {
const position = L.latLng(item.lat, item.lng) const position = L.latLng(item.lat, item.lng)
const marker = L.marker(position) const marker = L.marker(position)
if (item.externalLink) { const popupContent = '<div data-rte-content=""><strong>' + item.name + '</strong><br>' + item.teaser +
marker.on('click', () => { '<br><a href="' + item.uri + '">zu den Details</a></div>'
window.open(item.externalLink, '_blank') marker.bindPopup(popupContent)
})
} else {
const popupContent = '<div data-rte-content=""><strong>' + item.name + '</strong><br>' + item.teaser +
'<br><a href="' + item.uri + '">zu den Details</a></div>'
marker.bindPopup(popupContent)
}
marker.addTo(this.map) marker.addTo(this.map)
bounds.extend(position) bounds.extend(position)
} }
@@ -8,7 +8,7 @@
<h2 class="text-base font-bold mb-1"> <h2 class="text-base font-bold mb-1">
<f:if condition="{title}"> <f:if condition="{title}">
<f:then> <f:then>
Skiurlaub {title} Facts {title}
</f:then> </f:then>
<f:else> <f:else>
Facts Facts