Skip to content
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

Fix: style annotation is not deselected #512

Merged
merged 1 commit into from Feb 12, 2021
Merged

Conversation

n8han
Copy link
Collaborator

@n8han n8han commented Jan 26, 2021

When deselectStyleAnnotation is called synchronously in this delegate
callback, the operation silently fails and the selected appearance for
the annotation (typically, a blue tinted overlay) remains. This is an
unexpected state, since the flutter-mapbox-gl wrapper does not track
annotation selection and has no way to remove it. If the annotation
itself is removed, the selection remains visible on the map.

If we call deselectStyleAnnotation asynchronously, the selection is
removed as expected an is not visible to the user as a tinted overlay.

When `deselectStyleAnnotation` is called synchronously in this delegate
callback, the operation silently fails and the selected appearance for
the annotation (typically, a blue tinted overlay) remains. This is an
unexpected state, since the flutter-mapbox-gl wrapper does not track
annotation selection and has no way to remove it. If the annotation
itself is removed, the selection remains visible on the map.

If we call `deselectStyleAnnotation` asynchronously, the selection is
removed as expected an is not visible to the user as a tinted overlay.
@n8han n8han added bug Something isn't working ios labels Jan 26, 2021
@tobrun tobrun merged commit 66a2b44 into master Feb 12, 2021
@tobrun tobrun deleted the AnnotationSelection branch February 12, 2021 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ios
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants