/** * Sets the url of the marker image. * * @param string $url The url of the marker image. * * @throws \Ivory\GoogleMap\Exception\OverlayException If the url is not valid. */ public function setUrl($url) { if (!is_string($url)) { throw OverlayException::invalidMarkeImageUrl(); } $this->url = $url; }