Skip to content
Code-Schnipsel Gruppen Projekte
Commit 4d4b92f4 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Google Map API -> trim auf key, damit keine Leerzeichen mehr rein können und README angepasst

Übergeordneter 61c95b3e
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -20,6 +20,10 @@ Installation
Der Paketname ist: quiqqer/bricks
Nutzung des Simple Google Maps Baustein:
- GoogleMap Key: https://console.developers.google.com/apis/library
- Benötigtte APIS: Google Maps Embed API, Google Maps JavaScript API, Google Static Maps API
Mitwirken
----------
......
......@@ -48,17 +48,16 @@ public function getBody()
$brickCity = $this->getAttribute('city');
$query = http_build_query(array(
'key' => $this->getAttribute('api'),
'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;
$Engine->assign(array(
'url' => $url
));
return $Engine->fetch(dirname(__FILE__).'/SimpleGoogleMaps.html');
return $Engine->fetch(dirname(__FILE__) . '/SimpleGoogleMaps.html');
}
}
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