/** * Renders a zoom control style. * * @param string $zoomControlStyle The zoom control style. * * @throws \Ivory\GoogleMap\Exception\HelperException If thhe zoom control style is not valid. * * @return string The JS output. */ public function render($zoomControlStyle) { switch ($zoomControlStyle) { case ZoomControlStyle::DEFAULT_: case ZoomControlStyle::LARGE: case ZoomControlStyle::SMALL: return sprintf('google.maps.ZoomControlStyle.%s', strtoupper($zoomControlStyle)); default: throw HelperException::invalidZoomControlStyle(); } }