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