for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Ivory Google Map package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\GoogleMap\Helper\Renderer\Image\Overlay;
use Ivory\GoogleMap\Utility\OptionsAwareInterface;
abstract class AbstractPolylineStyleRenderer extends AbstractStyleRenderer
{
public function renderPolylineStyle(array $styles, OptionsAwareInterface $polyline): ?string
if (!isset($styles['geodesic']) && $polyline->hasOption('geodisc')) {
$styles['geodesic'] = $polyline->getOption('geodisc');
}
if (!isset($styles['color']) && $polyline->hasOption('strokeColor')) {
$styles['color'] = $polyline->getOption('strokeColor');
if (!isset($styles['weight']) && $polyline->hasOption('strokeWeight')) {
$styles['weight'] = $polyline->getOption('strokeWeight');
return $this->renderStyle($styles);