Fix geo coordinates not being propagated to ce
This commit is contained in:
@@ -2,7 +2,26 @@ tt_content.gmap =< tt_content.teaser_product
|
|||||||
tt_content.gmap {
|
tt_content.gmap {
|
||||||
templateName = Gmap
|
templateName = Gmap
|
||||||
dataProcessing {
|
dataProcessing {
|
||||||
10 = EP\EpTheme\DataProcessing\TeaserProcessor
|
10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
|
||||||
|
10 {
|
||||||
|
table = tx_epproducts_domain_model_hotel
|
||||||
|
where.data = field:tx_eptheme_context_hotel
|
||||||
|
where.wrap = uid=|
|
||||||
|
pidInList = {$plugin.tx_epproducts.settings.hotelsStoragePid}
|
||||||
|
as = hotel
|
||||||
|
|
||||||
|
dataProcessing {
|
||||||
|
10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
|
||||||
|
10 {
|
||||||
|
table = tx_epproducts_domain_model_region
|
||||||
|
where.data = field:region
|
||||||
|
where.wrap = uid=|
|
||||||
|
pidInList = {$plugin.tx_epproducts.settings.destinationsStoragePid}
|
||||||
|
recursive = 2
|
||||||
|
as = region
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
settings.googleMapsApiKey = {$plugin.tx_eptheme.settings.googleMapsApiKey}
|
settings.googleMapsApiKey = {$plugin.tx_eptheme.settings.googleMapsApiKey}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
this.map = new googleMaps.Map(this.$refs.container, this.mapOptions);
|
this.map = new googleMaps.Map(this.$refs.container, this.mapOptions);
|
||||||
if (this.markers.length) {
|
if (this.markers != null) {
|
||||||
const bounds = new googleMaps.LatLngBounds();
|
const bounds = new googleMaps.LatLngBounds();
|
||||||
const infoWindow = new googleMaps.InfoWindow({maxWidth: 200});
|
const infoWindow = new googleMaps.InfoWindow({maxWidth: 200});
|
||||||
for (let item of this.markers) {
|
for (let item of this.markers) {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<html data-namespace-typo3-fluid="true" lang="en"
|
<html data-namespace-typo3-fluid="true" lang="en"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
|
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
|
||||||
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers"
|
|
||||||
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
|
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
|
||||||
|
|
||||||
<f:layout name="Default"/>
|
<f:layout name="Default"/>
|
||||||
@@ -9,8 +8,8 @@
|
|||||||
<f:section name="Content">
|
<f:section name="Content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<gmap
|
<gmap
|
||||||
lat="{hotel.latitude -> v:or(alternative: region.latitude)}"
|
lat="{hotel.0.data.latitude -> v:or(alternative: hotel.0.region.0.data.latitude)}"
|
||||||
lng="{hotel.longitude -> v:or(alternative: region.longitude)}"
|
lng="{hotel.0.data.longitude -> v:or(alternative: hotel.0.region.0.data.longitude)}"
|
||||||
:zoom="17"
|
:zoom="17"
|
||||||
api-key="{settings.googleMapsApiKey}"
|
api-key="{settings.googleMapsApiKey}"
|
||||||
></gmap>
|
></gmap>
|
||||||
|
|||||||
Reference in New Issue
Block a user