src/Helper/Overlays/MarkerShapeHelper.php
public function render(MarkerShape $markerShape)
    {
        return sprintf(
            '%s = new google.maps.MarkerShape(%s);'.PHP_EOL,
            $markerShape->getJavascriptVariable(),
            json_encode(array('type' => $markerShape->getType(), 'coords' => $markerShape->getCoordinates()))
        );
    }
public function render(MarkerShape $markerShape)
    {
        return sprintf(
            '%s = new google.maps.MarkerShape(%s);'.PHP_EOL,
            $markerShape->getJavascriptVariable(),
            json_encode(array('type' => $markerShape->getType(), 'coords' => $markerShape->getCoordinates()))
        );
    }
Renders a marker shape.

@param \Ivory\GoogleMap\Overlays\MarkerShape $markerShape The marker shape.

@return string The JS output.