Closed exilonX closed 2 years ago
This behaviour comes from the underlying js map API. Instead of creating the LatLngBounds
with LatLngBounds(p1, p2)
you can use LatLngBounds().extend(p1).extend(p2)
to get the behaviour you expect.
Thanks for the fast reply, this fixes the Bounds across the globe problem.
What about the zoom ? As I told you it stops working, I can move the camera, but zoom in / zoom out doesn't change anything...
Testing on example/02-events/event-closure I don't face the problem you describe. Perhaps something in your code is the cause of this zoom problem.
Could be 👍 I will investigate further :) Hope to find out the problem...
As far as I can imagine,
map.fitBounds(LatLngBounds)
should position the camera (change zoom level) to match the given bounds.I noticed some problems with this feature:
Any ideas how to get around these issues ?