Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Map::queryPointAnnotations returns empty #8799

Closed

Description

@tobrun

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.

ezgif com-video-to-gif 42

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.

Activity

  1. changed the title [-]Map::queryPointAnnotations returns empty when it shouldn[/-] [+]Map::queryPointAnnotations returns empty[/+] on Apr 24, 2017
  2. added
    Core
    on Apr 24, 2017
  3. added this to the android-v5.1.0 milestone on Apr 24, 2017
  4. tobrun commented on Apr 24, 2017

    @tobrun
    MemberAuthor

    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.

  5. removed this from the android-v5.2.0 milestone on Sep 20, 2017
  6. ChrisLoer commented on Jan 18, 2018

    @ChrisLoer
    Contributor

    @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.

  7. tobrun commented on Jan 19, 2018

    @tobrun
    MemberAuthor

    quick test didn't show the issue. Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions