Fix geo coordinates not being propagated to ce

This commit is contained in:
Björn Fromme
2018-06-22 09:39:06 +02:00
parent d83ea74fdc
commit 467d96beef
3 changed files with 23 additions and 5 deletions
@@ -35,7 +35,7 @@
}];
}
this.map = new googleMaps.Map(this.$refs.container, this.mapOptions);
if (this.markers.length) {
if (this.markers != null) {
const bounds = new googleMaps.LatLngBounds();
const infoWindow = new googleMaps.InfoWindow({maxWidth: 200});
for (let item of this.markers) {
@@ -1,7 +1,6 @@
<html data-namespace-typo3-fluid="true" lang="en"
xmlns="http://www.w3.org/1999/xhtml"
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">
<f:layout name="Default"/>
@@ -9,8 +8,8 @@
<f:section name="Content">
<div class="row">
<gmap
lat="{hotel.latitude -> v:or(alternative: region.latitude)}"
lng="{hotel.longitude -> v:or(alternative: region.longitude)}"
lat="{hotel.0.data.latitude -> v:or(alternative: hotel.0.region.0.data.latitude)}"
lng="{hotel.0.data.longitude -> v:or(alternative: hotel.0.region.0.data.longitude)}"
:zoom="17"
api-key="{settings.googleMapsApiKey}"
></gmap>