A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.
Give When giving CameraConstraint.contain and CameraFit.insideBounds the same LatLngBounds. It causes errors, MapCamera is no longer within the cameraConstraint after an option change. Older version is fine (6.1.0)
Flutter map: 7.0.1
Flutter: 3.22.2
How can we reproduce it?
This happen immediately after first rendering of the screen. No value changes need to trigger this error. Just the same Bounds vvalue to the fit inside bounds and cameraConstraint contain.
Do you have a potential solution?
A temporary solution I found after abit more testing is that I have to include a initialCenterLatLng that is somwhere inside the contain coordinate to not trigger the assert.
What is the bug?
Give When giving
CameraConstraint.contain
andCameraFit.insideBounds
the sameLatLngBounds
. It causes errors,MapCamera is no longer within the cameraConstraint after an option change
. Older version is fine (6.1.0)Flutter map: 7.0.1 Flutter: 3.22.2
How can we reproduce it?
This happen immediately after first rendering of the screen. No value changes need to trigger this error. Just the same Bounds vvalue to the fit inside bounds and cameraConstraint contain.
Do you have a potential solution?
A temporary solution I found after abit more testing is that I have to include a
initialCenter
LatLng
that is somwhere inside the contain coordinate to not trigger the assert.Platforms
Android 14 (Pixel 5)
Severity
Fatal: Causes the application to crash