Skip to content

Commit fead095

Browse files
author
Danny van Wijk
committed
[Map] Use fitboundstomarker configuration
1 parent 8f02bd6 commit fead095

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Map/src/Map.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ public function toArray(): array
167167
*/
168168
public static function fromArray(array $map): self
169169
{
170-
$map['fitBoundsToMarkers'] = true;
171-
172170
if (isset($map['options'])) {
173171
$map['options'] = [] === $map['options'] ? null : MapOptionsNormalizer::denormalize($map['options']);
174172
}
@@ -177,10 +175,6 @@ public static function fromArray(array $map): self
177175
$map['center'] = Point::fromArray($map['center']);
178176
}
179177

180-
if (isset($map['zoom']) || isset($map['center'])) {
181-
$map['fitBoundsToMarkers'] = false;
182-
}
183-
184178
$map['markers'] ??= [];
185179
if (!\is_array($map['markers'])) {
186180
throw new InvalidArgumentException('The "markers" parameter must be an array.');

0 commit comments

Comments
 (0)