/** * Renders javascript zoom control * * @param Ivory\GoogleMapBundle\Model\Controls\ZoomControl $zoomControl Zoom control * @return HTML output */ public function render(ZoomControl $zoomControl) { return sprintf('{"position":%s,"style":%s}', $this->controlPositionHelper->render($zoomControl->getControlPosition()), $this->zoomControlStyleHelper->render($zoomControl->getZoomControlStyle())); }
/** * Renders the rotate control * * @param Ivory\GoogleMapBundle\Model\Controls\RotateControl $rotateControl * @return string HTML output */ public function render(RotateControl $rotateControl) { return sprintf('{"position":%s}', $this->controlPositionHelper->render($rotateControl->getControlPosition())); }
/** * Renders the street view control * * @param Ivory\GoogleMapBundle\Model\Controls\StreetViewControl $streetViewControl * @return string HTML output */ public function render(StreetViewControl $streetViewControl) { return sprintf('{"position":%s}', $this->controlPositionHelper->render($streetViewControl->getControlPosition())); }