diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/Gmap.vue b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/Gmap.vue
index 70682677..ae0ac748 100644
--- a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/Gmap.vue
+++ b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/Gmap.vue
@@ -35,8 +35,10 @@
});
this.map.setZoom(this.zoom);
if (this.lat && this.lng) {
- const center = L.latLng(this.lat, this.lng);
- this.map.setView(center);
+ const position = L.latLng(this.lat, this.lng);
+ const marker = L.marker(position);
+ marker.addTo(this.map);
+ this.map.setView(position);
} else if (this.markers) {
const bounds = L.latLngBounds();
for (let item of this.markers) {
@@ -63,3 +65,9 @@
}
}
+
+
diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue
index ffb440de..4879ecba 100644
--- a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue
+++ b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue
@@ -11,6 +11,7 @@
import Calendar from './Calendar.vue'
import FacebookPixel from './FacebookPixel.vue'
import WatchlistToggle from './WatchlistToggle.vue'
+ import Gmap from './Gmap.vue'
import dayjs from 'dayjs'
import 'dayjs/locale/de'
@@ -24,7 +25,8 @@
AjaxContent,
Calendar,
FacebookPixel,
- WatchlistToggle
+ WatchlistToggle,
+ Gmap
},
data () {
return {
diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html b/web/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html
index 07e180cc..4a715d52 100644
--- a/web/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html
+++ b/web/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html
@@ -89,16 +89,14 @@
src="{ep:uri.video(value: product.video)}">
-
-