src/Overlays/MarkerShape.php
public function addPolyCoordinate($x, $y)
    {
        if ($this->type !== 'poly') {
            throw OverlayException::invalidMarkerShapeAddPolyCoordinateCall();
        }

        if (!is_numeric($x) || !is_numeric($y)) {
            throw OverlayException::invalidMarkerShapePolyCoordinate();
        }

        $this->coordinates[] = $x;
        $this->coordinates[] = $y;
    }
public function addPolyCoordinate($x, $y)
    {
        if ($this->type !== 'poly') {
            throw OverlayException::invalidMarkerShapeAddPolyCoordinateCall();
        }

        if (!is_numeric($x) || !is_numeric($y)) {
            throw OverlayException::invalidMarkerShapePolyCoordinate();
        }

        $this->coordinates[] = $x;
        $this->coordinates[] = $y;
    }
Adds a coordinate to the marker shape if the type is poly.

@param integer $x The X coordinate.
@param integer $y The Y coordinate.

@throws \Ivory\GoogleMap\Exception\OverlayException If the type is not poly or if the poly coordinate is not
valid.