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
So sieht der Code (vereinfacht) aus:
$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();
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
🙂