Fix incorrect coordinates determination in gmaps ce
This commit is contained in:
+13
-5
@@ -1,17 +1,25 @@
|
||||
<html data-namespace-typo3-fluid="true" lang="en"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
|
||||
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
|
||||
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
|
||||
|
||||
<f:layout name="Default"/>
|
||||
|
||||
<f:section name="Content">
|
||||
<f:if condition="{hotel}">
|
||||
<f:render section="Map" arguments="{latitude: hotel.0.data.latitude, longitude: hotel.0.data.longitude, googleMapsApiKey: settings.googleMapsApiKey}"/>
|
||||
</f:if>
|
||||
<f:if condition="{region}">
|
||||
<f:render section="Map" arguments="{latitude: region.0.data.latitude, longitude: region.0.data.longitude, googleMapsApiKey: settings.googleMapsApiKey}"/>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
<f:section name="Map">
|
||||
<div class="row">
|
||||
<gmap
|
||||
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)}"
|
||||
lat="{latitude}"
|
||||
lng="{longitude}"
|
||||
:zoom="17"
|
||||
api-key="{settings.googleMapsApiKey}"
|
||||
api-key="{googleMapsApiKey}"
|
||||
></gmap>
|
||||
</div>
|
||||
</f:section>
|
||||
|
||||
Reference in New Issue
Block a user