public function toHtml(Google_Maps_Static $map) { $original = $map->getZoom(); $map->zoomIn(); $zoom_in = sprintf('<a rel="nofollow" href="%s"><img src="%s" id="%s" alt="%s" /></a>', $_SERVER['PHP_SELF'] . '?' . $map->toQueryString(), $this->getZoomInImage(), $this->getZoomInId(), $this->getZoomInAlt()); $map->setZoom($original); $map->zoomOut(); $zoom_out = sprintf('<a rel="nofollow" href="%s"><img src="%s" id="%s" alt="%s" /></a>', $_SERVER['PHP_SELF'] . '?' . $map->toQueryString(), $this->getZoomOutImage(), $this->getZoomOutId(), $this->getZoomOutAlt()); $map->setZoom($original); return $zoom_in . $zoom_out; }