Skip to content

Commit

Permalink
chore: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits authored and github-actions[bot] committed Feb 12, 2024
1 parent 917dcde commit 4d9f007
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/Infolists/MapEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ class MapEntry extends Entry
* Main field config variables
*/
private array $mapConfig = [
'defaultLocation' => [
'defaultLocation' => [
'lat' => 15.3419776,
'lng' => 44.2171392,
],
'controls' => [],
'drawingField' => null,
'statePath' => '',
'layers' => [],
'defaultZoom' => 8,
'gmaps' => '',
'controls' => [],
'drawingField' => null,
'statePath' => '',
'layers' => [],
'defaultZoom' => 8,
'gmaps' => '',
];

private array $componentTree = [];
Expand Down Expand Up @@ -250,18 +250,18 @@ public function getMapsUrl(): string
public function getMapConfig(): string
{
$config = array_merge($this->mapConfig, [
'defaultLocation' => $this->getDefaultLocation(),
'statePath' => $this->getStatePath(),
'controls' => $this->getMapControls(false),
'drawingField' => $this->getDrawingField(),
'layers' => $this->getLayers(),
'defaultZoom' => $this->getDefaultZoom(),
'geoJson' => $this->getGeoJsonFile(),
'geoJsonProperty' => $this->getGeoJsonProperty(),
'geoJsonVisible' => $this->getGeoJsonVisible(),
'gmaps' => MapsHelper::mapsUrl(false, $this->getDrawingControl() ? ['drawing'] : []),
'defaultLocation' => $this->getDefaultLocation(),
'statePath' => $this->getStatePath(),
'controls' => $this->getMapControls(false),
'drawingField' => $this->getDrawingField(),
'layers' => $this->getLayers(),
'defaultZoom' => $this->getDefaultZoom(),
'geoJson' => $this->getGeoJsonFile(),
'geoJsonProperty' => $this->getGeoJsonProperty(),
'geoJsonVisible' => $this->getGeoJsonVisible(),
'gmaps' => MapsHelper::mapsUrl(false, $this->getDrawingControl() ? ['drawing'] : []),
]);

return json_encode($config);
}

Expand Down

0 comments on commit 4d9f007

Please sign in to comment.