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.

Markers disappear when zooming in/out fast #9487

Closed

Description

@mrfaa

**Platform: Android **
Mapbox SDK version: 5.1.0

Steps to trigger behavior

Hi Team,

attached you will find a short video, which shows the bug i have identified in the latest stable mapbox version. I used the Demo App. When I zoom out quickly some marker disappear. When i pan the map again the markers appear again. Is this a normal behavior? I have in my app round about 400 markers. Most of them disappear when zooming fast in/out and appear again when i pan the map.

Best
Fabian

Expected behavior

All markers remain visible.

Actual behavior

Markers disappear.
videotogif_2017 07 12_18 39 07 1

Activity

  1. added
    AndroidMapbox Maps SDK for Android
    annotationsAnnotations on iOS and macOS or markers on Android
    on Jul 12, 2017
  2. tobrun commented on Jul 14, 2017

    @tobrun
    Member

    Thank you for the report @mrfaa,
    adding context here that the marker shown in the gif are MarkerViews.

  3. tobrun commented on Jul 24, 2017

    @tobrun
    Member

    normally those markers should re show after a maximum of 250 ms (this is what I'm observing in the MarkerViewActivity) Though these are shown at a high zoomlevel, I'm guessing this issue only shows at low zoomlevel as we probably aren't hitting the correct map change events for triggering an update to MarkerViews.

  4. tobrun commented on Jul 24, 2017

    @tobrun
    Member

    In any case, I would advice you to look into using SymbolLayer instead. We will be deprecating support for MarkerViews in an upcoming release. See #9365.

  5. tobrun commented on Sep 27, 2017

    @tobrun
    Member

    MarkerView is going to be deprecated with #9782. We are no longer maintaining this API and will remove it in future versions of the SDK. As noted in the deprecation message. We are advising users to leverage SymbolLayer instead (you can use the sample code in #9782 to convert Android SDK views to an Image to be used as a Symbol). While we no longer maintain the API we are happy to accept any PRs on it.

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

    AndroidMapbox Maps SDK for AndroidannotationsAnnotations on iOS and macOS or markers on Android

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions