Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
27 | private function getMapHtml(): string { |
||
28 | return |
||
29 | Html::element( |
||
30 | 'script', |
||
31 | [], |
||
32 | 'var GeoJson =' . $this->json . ';' |
||
33 | ) |
||
34 | . $this->wrapHtmlInThumbDivs( |
||
35 | Html::rawElement( |
||
36 | 'div', |
||
37 | [ |
||
38 | 'id' => 'GeoJsonMap', |
||
39 | 'style' => "width: 100%; height: 600px; background-color: #eeeeee; overflow: hidden;", |
||
40 | 'class' => 'maps-map maps-leaflet maps-geojson-editor' |
||
41 | ], |
||
42 | Html::element( |
||
43 | 'div', |
||
44 | [ |
||
45 | 'class' => 'maps-loading-message' |
||
46 | ], |
||
47 | wfMessage( 'maps-loading-map' )->inContentLanguage()->text() |
||
48 | ) |
||
49 | ) |
||
50 | ); |
||
51 | } |
||
52 | |||
70 |