Пример #1
0
 /**
  * Sets the marker animation.
  *
  * @param string $animation The marker animation.
  *
  * @throws \Ivory\GoogleMap\Exception\OverlayException If the animation is not valid.
  */
 public function setAnimation($animation = null)
 {
     if (!in_array($animation, Animation::getAnimations()) && $animation !== null) {
         throw OverlayException::invalidMarkerAnimation();
     }
     $this->animation = $animation;
 }