Skip to content
Code-Schnipsel Gruppen Projekte
Commit ea66f0e2 erstellt von Michael's avatar Michael
Dateien durchsuchen

Google Maps verbessert

Übergeordneter 1c9e6918
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -182,6 +182,10 @@
<setting name="city">
<locale group="quiqqer/bricks" var="brick.control.simplegooglemaps.settings.city"/>
</setting>
<setting name="zoom" type="number">
<locale group="quiqqer/bricks" var="brick.control.simplegooglemaps.settings.zoom"/>
</setting>
<setting name="api">
<locale group="quiqqer/bricks" var="brick.control.simplegooglemaps.settings.api"/>
</setting>
......
#SimpleGoogleMaps {
background: none;
border: none;
display: block;
height: 300px;
width: 100%;
}
\ No newline at end of file
<iframe id="SimpleGoogleMaps" src="{$url}"></iframe>
<iframe id="SimpleGoogleMaps" src="{$url}"></iframe>
\ No newline at end of file
......@@ -46,16 +46,17 @@ public function getBody()
$brickStreet = $this->getAttribute('street');
$brickZip = $this->getAttribute('zip');
$brickCity = $this->getAttribute('city');
$zoom = $this->getAttribute('zoom');
$query = http_build_query(array(
'key' => trim($this->getAttribute('api')),
'q' => "{$brickTitle},{$brickZip},{$brickStreet},{$brickCity}"
));
$url = 'https://www.google.com/maps/embed/v1/place?' . $query;
$url = 'https://www.google.com/maps/embed/v1/place?' . $query . "&zoom=" . $zoom . "&";
$Engine->assign(array(
'url' => $url
'url' => $url
));
return $Engine->fetch(dirname(__FILE__) . '/SimpleGoogleMaps.html');
......
......@@ -490,6 +490,10 @@ M&ouml;chten Sie die Bausteine aus der Bausteinzone entfernen?</p>]]></de>
<de><![CDATA[Stadt]]></de>
<en><![CDATA[City]]></en>
</locale>
<locale name="brick.control.simplegooglemaps.settings.zoom">
<de><![CDATA[Zoom]]></de>
<en><![CDATA[Zoom]]></en>
</locale>
<locale name="brick.control.simplegooglemaps.settings.api">
<de><![CDATA[API Key]]></de>
<en><![CDATA[API Key]]></en>
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren