Merge branch 'develop'
This commit is contained in:
+3
-9
@@ -36,15 +36,9 @@ export default class extends Controller {
|
||||
for (let item of this.markersValue) {
|
||||
const position = L.latLng(item.lat, item.lng)
|
||||
const marker = L.marker(position)
|
||||
if (item.externalLink) {
|
||||
marker.on('click', () => {
|
||||
window.open(item.externalLink, '_blank')
|
||||
})
|
||||
} 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)
|
||||
}
|
||||
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)
|
||||
bounds.extend(position)
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<h2 class="text-base font-bold mb-1">
|
||||
<f:if condition="{title}">
|
||||
<f:then>
|
||||
Skiurlaub {title} Facts
|
||||
{title}
|
||||
</f:then>
|
||||
<f:else>
|
||||
Facts
|
||||
|
||||
Reference in New Issue
Block a user