Conditions | 7 |
Paths | 8 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function renderPolylineStyle(array $styles, OptionsAwareInterface $polyline) |
||
28 | { |
||
29 | if (!isset($styles['geodesic']) && $polyline->hasOption('geodisc')) { |
||
30 | $styles['geodesic'] = $polyline->getOption('geodisc'); |
||
31 | } |
||
32 | |||
33 | if (!isset($styles['color']) && $polyline->hasOption('strokeColor')) { |
||
34 | $styles['color'] = $polyline->getOption('strokeColor'); |
||
35 | } |
||
36 | |||
37 | if (!isset($styles['weight']) && $polyline->hasOption('strokeWeight')) { |
||
38 | $styles['weight'] = $polyline->getOption('strokeWeight'); |
||
39 | } |
||
40 | |||
41 | return $this->renderStyle($styles); |
||
42 | } |
||
43 | } |
||
44 |