-
-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] v6: LateInitializationError
when specifying initialCameraFit
#1684
Comments
Can reproduce it with flutter_map v6 by adding the |
This comment was marked as duplicate.
This comment was marked as duplicate.
We're looking into this, please use the 👍 reaction to show you have the same issue unless you have more information to provide. The internal call to |
initialCameraFit
LateInitializationError
when specifying initialCameraFit
I've made some changes to fix this problem. It works, but it should be a better solution than mine. I had to use Future.delay because the map tiles were not loading. I have no idea why. |
@BartoszStasiurka Thanks for this. Although it works in theory, if the tiles load within less than one frame, there'll be one frame before the camera fits. The chances of that happening are extremely unlikely of course, but something to think about. |
- Fixes _interactiveviewerstate has not been initialized - Reverse once fleaflet/flutter_map#1684 fixed
LateInitializationError
when specifying initialCameraFit
LateInitializationError
when specifying initialCameraFit
What is the bug?
When running the sample code that includes
initialCameraFit
,LateInitializationError
is thrown.Console output
How can we reproduce it?
Sample Code
Do you have a potential solution?
Moving the
initialCameraFit
code to theonMapReady
function can be an alternative approach.Platforms
iOS
Severity
Erroneous: Prevents normal functioning and causes errors in the console
Details
The text was updated successfully, but these errors were encountered: