@@ 60-68 (lines=9) @@ | ||
57 | */ |
|
58 | public function collect(Autocomplete $autocomplete, array $coordinates = []) |
|
59 | { |
|
60 | foreach ($this->boundCollector->collect($autocomplete) as $bound) { |
|
61 | if ($bound->hasSouthWest()) { |
|
62 | $coordinates = $this->collectValue($bound->getSouthWest(), $coordinates); |
|
63 | } |
|
64 | ||
65 | if ($bound->hasNorthEast()) { |
|
66 | $coordinates = $this->collectValue($bound->getNorthEast(), $coordinates); |
|
67 | } |
|
68 | } |
|
69 | ||
70 | return $coordinates; |
|
71 | } |
@@ 215-220 (lines=6) @@ | ||
212 | $coordinates = $this->collectValue($map->getCenter(), $coordinates); |
|
213 | } |
|
214 | ||
215 | foreach ($this->boundCollector->collect($map) as $bound) { |
|
216 | if ($bound->hasCoordinates()) { |
|
217 | $coordinates = $this->collectValue($bound->getSouthWest(), $coordinates); |
|
218 | $coordinates = $this->collectValue($bound->getNorthEast(), $coordinates); |
|
219 | } |
|
220 | } |
|
221 | ||
222 | foreach ($this->circleCollector->collect($map) as $circle) { |
|
223 | $coordinates = $this->collectValue($circle->getCenter(), $coordinates); |