@@ -41,16 +41,16 @@ class MapEntry extends Entry
41
41
* Main field config variables
42
42
*/
43
43
private array $ mapConfig = [
44
- 'defaultLocation ' => [
44
+ 'defaultLocation ' => [
45
45
'lat ' => 15.3419776 ,
46
46
'lng ' => 44.2171392 ,
47
47
],
48
- 'controls ' => [],
49
- 'drawingField ' => null ,
50
- 'statePath ' => '' ,
51
- 'layers ' => [],
52
- 'defaultZoom ' => 8 ,
53
- 'gmaps ' => '' ,
48
+ 'controls ' => [],
49
+ 'drawingField ' => null ,
50
+ 'statePath ' => '' ,
51
+ 'layers ' => [],
52
+ 'defaultZoom ' => 8 ,
53
+ 'gmaps ' => '' ,
54
54
];
55
55
56
56
private array $ componentTree = [];
@@ -250,18 +250,18 @@ public function getMapsUrl(): string
250
250
public function getMapConfig (): string
251
251
{
252
252
$ config = array_merge ($ this ->mapConfig , [
253
- 'defaultLocation ' => $ this ->getDefaultLocation (),
254
- 'statePath ' => $ this ->getStatePath (),
255
- 'controls ' => $ this ->getMapControls (false ),
256
- 'drawingField ' => $ this ->getDrawingField (),
257
- 'layers ' => $ this ->getLayers (),
258
- 'defaultZoom ' => $ this ->getDefaultZoom (),
259
- 'geoJson ' => $ this ->getGeoJsonFile (),
260
- 'geoJsonProperty ' => $ this ->getGeoJsonProperty (),
261
- 'geoJsonVisible ' => $ this ->getGeoJsonVisible (),
262
- 'gmaps ' => MapsHelper::mapsUrl (false , $ this ->getDrawingControl () ? ['drawing ' ] : []),
253
+ 'defaultLocation ' => $ this ->getDefaultLocation (),
254
+ 'statePath ' => $ this ->getStatePath (),
255
+ 'controls ' => $ this ->getMapControls (false ),
256
+ 'drawingField ' => $ this ->getDrawingField (),
257
+ 'layers ' => $ this ->getLayers (),
258
+ 'defaultZoom ' => $ this ->getDefaultZoom (),
259
+ 'geoJson ' => $ this ->getGeoJsonFile (),
260
+ 'geoJsonProperty ' => $ this ->getGeoJsonProperty (),
261
+ 'geoJsonVisible ' => $ this ->getGeoJsonVisible (),
262
+ 'gmaps ' => MapsHelper::mapsUrl (false , $ this ->getDrawingControl () ? ['drawing ' ] : []),
263
263
]);
264
-
264
+
265
265
return json_encode ($ config );
266
266
}
267
267
0 commit comments