addMarkerByAddress( $location['address'],strip_tags($location['title']), $location['title']); //adds address to showup in Map } else { $map->setCenterCoords(-96.67,40.8279); // if no locations are passed in function, then focus on US $map->setZoomLevel(3); } $map->setWidth($width); $map->setHeight($height); $map_content=$map->getHeaderJS().$map->getMapJS().$map->getMap(); return $this->output($map_content); } } ?>