Zum Inhalt springen

Googlemap will nicht...

Erstellt am 1. Januar 2010 · 2 Antworten · letzte Antwort am 1. Januar 2010

Tags: Frage

einpraegsam.​net ·

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();