You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Map::queryPointAnnotations occasionally returns a 0 size when point annotations are found in the current viewport. For MarkerViews this results in flickering as they are removed/readded based on the results coming from Map::queryPointAnnotations.
Example output from gif above:
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 0
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 0
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 0
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 2
E/MarkerViewManager: MarkerViews in rect 2
This issue is a follow up from #8367 and it's possible that the root problem could be related to #6762.
I replaced the MarkerView with Marker (PointAnnotation). While the marker itself doesn't flicker, I'm seeing similar output when it comes to Map::queryPointAnnotations.
E/AnnotationManager: Markers in rect 1
E/AnnotationManager: Markers in rect 0
E/AnnotationManager: Markers in rect 1
E/AnnotationManager: Markers in rect 0
E/AnnotationManager: Markers in rect 1
E/AnnotationManager: Markers in rect 1
E/AnnotationManager: Markers in rect 0
E/AnnotationManager: Markers in rect 0
E/AnnotationManager: Markers in rect 1
E/AnnotationManager: Markers in rect 1
E/AnnotationManager: Markers in rect 1
E/AnnotationManager: Markers in rect 0
E/AnnotationManager: Markers in rect 1
E/AnnotationManager: Markers in rect 0
E/AnnotationManager: Markers in rect 0
E/AnnotationManager: Markers in rect 1
E/AnnotationManager: Markers in rect 0
I'm thinking that this could be related to the asynchronous behaviour of adding markers (a marker will only be available to query until it has been rendered) and that updating the position shows the same issue.
@tobrun How easy is this to reproduce? It would be good to test now that the fix for #10778 has gone into master. This issue was reported before we introduced the problem in #10778, but the code has changed enough we may have incidentally fixed the problem. If not, I can investigate.
Activity
[-]Map::queryPointAnnotations returns empty when it shouldn[/-][+]Map::queryPointAnnotations returns empty[/+]tobrun commentedon Apr 24, 2017
I replaced the MarkerView with Marker (PointAnnotation). While the marker itself doesn't flicker, I'm seeing similar output when it comes to
Map::queryPointAnnotations.I'm thinking that this could be related to the asynchronous behaviour of adding markers (a marker will only be available to query until it has been rendered) and that updating the position shows the same issue.
ChrisLoer commentedon Jan 18, 2018
@tobrun How easy is this to reproduce? It would be good to test now that the fix for #10778 has gone into
master. This issue was reported before we introduced the problem in #10778, but the code has changed enough we may have incidentally fixed the problem. If not, I can investigate.tobrun commentedon Jan 19, 2018
quick test didn't show the issue. Closing!