/** * Sets the marker shape type. * * The allowing marker shape type are : circle, poly & rect. * * @param string $type The marker schape type. * * @throws \Ivory\GoogleMap\Exception\OverlayException If the type is not valid. */ public function setType($type) { switch (strtolower($type)) { case 'circle': case 'poly': case 'rect': $this->type = $type; break; default: throw OverlayException::invalidMarkerShapeType(); } }