From 5cdace64f52a1c5d86b87d73457644ce2947e927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 23 Aug 2022 11:37:39 +0200 Subject: [PATCH] Remove Google Maps links from maps overview --- .../Private/Assets/js/controllers/osm_controller.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/osm_controller.js b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/osm_controller.js index fd36532d..47f6f49d 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/osm_controller.js +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/osm_controller.js @@ -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 = '
' + item.name + '
' + item.teaser + - '
zu den Details
' - marker.bindPopup(popupContent) - } + const popupContent = '
' + item.name + '
' + item.teaser + + '
zu den Details
' + marker.bindPopup(popupContent) marker.addTo(this.map) bounds.extend(position) }