diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-06-06 10:40:52 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-06-06 10:44:09 +0100 |
| commit | 79de923d15fc06f830b5a55876a342d1b9e47219 (patch) | |
| tree | 65947e4ae9f61501b4a3779c1cb00ce4d65e8606 /app/Http/Controllers/PlaceHierarchyController.php | |
| parent | f6481ca983b5f837ab926f8052de34a9d72e461b (diff) | |
| download | webtrees-79de923d15fc06f830b5a55876a342d1b9e47219.tar.gz webtrees-79de923d15fc06f830b5a55876a342d1b9e47219.tar.bz2 webtrees-79de923d15fc06f830b5a55876a342d1b9e47219.zip | |
Fix: #3291 - Find bounding rectangle for place-hierarchy map
Diffstat (limited to 'app/Http/Controllers/PlaceHierarchyController.php')
| -rw-r--r-- | app/Http/Controllers/PlaceHierarchyController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Http/Controllers/PlaceHierarchyController.php b/app/Http/Controllers/PlaceHierarchyController.php index dd668749c7..39497cada8 100644 --- a/app/Http/Controllers/PlaceHierarchyController.php +++ b/app/Http/Controllers/PlaceHierarchyController.php @@ -272,7 +272,6 @@ class PlaceHierarchyController extends AbstractBaseController 'latitude' => $location->latitude(), 'longitude' => $location->longitude(), ]), - 'zoom' => $location->zoom() ?: 2, ], ]; } @@ -294,6 +293,7 @@ class PlaceHierarchyController extends AbstractBaseController } return [ + 'bounds' => (new PlaceLocation($placeObj->gedcomName()))->boundingRectangle(), 'sidebar' => $sidebar, 'markers' => [ 'type' => 'FeatureCollection', |
