---
title: "Googlemap will nicht..."
url: "https://www.typo3.net/d/95524-googlemap-will-nicht"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Frage"]
created: "2010-01-01"
last_reply: "2010-01-01"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Googlemap will nicht...

Extensions › Entwicklung · 2 Antworten · gestartet 2010-01-01

## Eröffnungsbeitrag

**einpraegsam.​net** · 2010-01-01 · [Beitrag #1](https://www.typo3.net/d/95524-googlemap-will-nicht/1)

Versuche eine eigene Googlemap auf einer Detailseite einzubinden. Ich kann machen was ich will - bekomme diese nicht zum laufen.
Das Ganze geht über die GoogleMapAPI.

<http://www.nitem.co.uk/detail.html>

Was habe ich übersehen? Bin für jeden Tipp dankbar

## Antworten

### [#2](https://www.typo3.net/d/95524-googlemap-will-nicht/2) · einpraegsam.​net · 2010-01-01

So sieht der Code (vereinfacht) aus:

```php
$map = new GoogleMapAPI($this->googlemapID);
$map->setAPIKey($this->conf['settings.']['googleMapKey']);
$map->setWidth('600');
$map->setHeight('400');
$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId] = $map->getHeaderJS();
$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId] .= $map->getMapJS();
$GLOBALS['TSFE']->JSeventFuncCalls['onload'][$this->extKey] = 'onLoad();';
$map->addMarkerByAddress('621 N 48th St # 6 Lincoln NE 68502','PJ Pizza','<b>PJ Pizza</b>');
$map->addMarkerByAddress('826 P St Lincoln NE 68502','Old Chicago','<b>Old Chicago</b>');
$map->addMarkerByAddress('3457 Holdrege St Lincoln NE 68502',"Valentino's","<b>Valentino's</b>");
$this->content .= $map->getMap();
$this->content .= $map->getSideBar();
```

### [#3](https://www.typo3.net/d/95524-googlemap-will-nicht/3) · einpraegsam.​net · 2010-01-01

ok, Geduld am Ende - ich schmeiße die GoogleMapAPI raus und mache es manuell, wie in diesem Beispiel:
<http://code.google.com/intl/de-DE/apis/maps/documentation/examples/directions-simple.html>

:)

---

Quelle: „Googlemap will nicht...“, typo3.net, https://www.typo3.net/d/95524-googlemap-will-nicht
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
