| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | private function getMapHtml( string $jsonString ): string { |
||
| 31 | return |
||
| 32 | Html::element( |
||
| 33 | 'div', |
||
| 34 | [ |
||
| 35 | 'id' => 'GeoJsonMap', |
||
| 36 | 'class' => 'GeoJsonMap', |
||
| 37 | ] |
||
| 38 | ) |
||
| 39 | . '<style>' |
||
| 40 | . '.GeoJsonMap {width: "100%"; height: 600px; display: "inline-block"}' |
||
| 41 | . '</style>' |
||
| 42 | . |
||
| 43 | Html::element( |
||
| 44 | 'script', |
||
| 45 | [], |
||
| 46 | 'var GeoJson =' . $jsonString . ';' |
||
| 47 | ); |
||
| 48 | } |
||
| 49 | |||
| 50 | } |