Fix geo coordinates not being propagated to ce
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user