8000 Added checks if style is fully loaded before accessing it by albertmoravec · Pull Request #563 · maplibre/flutter-maplibre-gl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added checks if style is fully loaded before accessing it #563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

albertmoravec
Copy link
Contributor

Added missing checks which caused crashes in certain situations on Android.

This is probably an issue on iOS as well, but I don't have access to my Mac at the moment. I'll open a separate PR for iOS if I am able to confirm and fix this.

@kuhnroyal
Copy link
Collaborator

@albertmoravec Can you describe these "certain situations"? Maybe I can reproduce them on iOS.

@albertmoravec
Copy link
Contributor Author

@albertmoravec Can you describe these "certain situations"? Maybe I can reproduce them on iOS.

Ah, I did not have much time to check myself, but generally you can break a lot of things by changing map style (e.g. between normal and satellite map) and doing other stuff like clicking into the map while it is loading. At least that's how I triggered this on Android.

The map tends to break a lot when you put all its features under stress when style is loading, since a lot of places are missing necessary checks and that breaks Flutter a bit more than for native apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0