diff --git a/src/components/LeafletMap.vue b/src/components/LeafletMap.vue index a67dcf0..5dac518 100644 --- a/src/components/LeafletMap.vue +++ b/src/components/LeafletMap.vue @@ -177,11 +177,11 @@ export default { router.push({ name: 'layerInfo', params: { layerId: layerId.toString() } }); }; - const openPlaceInfo = (layerId, placeId) => { + const openPlaceInfo = (layerId, layerTitle, layerDarkcolor, placeId) => { console.log('openPlaceInfo', layerId, placeId) router.push({ name: 'placeInfo', - params: { layerId: layerId.toString(), placeId: placeId.toString() } + params: { layerId: layerId.toString(), layerTitle: layerTitle.toString(), layerDarkcolor: layerDarkcolor.toString(), placeId: placeId.toString() } }); }; const markerclusterSettings = { @@ -397,7 +397,7 @@ export default {

${place.title}

${place.subtitle}

${place.teaser}

-

Mehr +

Mehr ` marker.bindPopup(popupContent) @@ -408,8 +408,10 @@ export default { container.querySelector('.place-info').addEventListener('click', (event) => { event.preventDefault(); const layerId = event.target.getAttribute('data-layer-id'); + const layerTitle = event.target.getAttribute('data-layer-title'); + const layerDarkcolor = event.target.getAttribute('data-layer-darkcolor'); const placeId = event.target.getAttribute('data-place-id'); - openPlaceInfo(layerId, placeId); + openPlaceInfo(layerId, layerTitle, layerDarkcolor, placeId); }); container.querySelector('.layer-info').addEventListener('click', (event) => { diff --git a/src/components/PlaceView.vue b/src/components/PlaceView.vue index 3ffd919..85a2639 100644 --- a/src/components/PlaceView.vue +++ b/src/components/PlaceView.vue @@ -2,16 +2,28 @@