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

Markers disappear when zooming in/out fast #9487

Closed
mrfaa opened this issue Jul 12, 2017 · 4 comments
Closed

Markers disappear when zooming in/out fast #9487

mrfaa opened this issue Jul 12, 2017 · 4 comments
Labels
Android Mapbox Maps SDK for Android annotations Annotations on iOS and macOS or markers on Android

Comments

@mrfaa
Copy link

mrfaa commented Jul 12, 2017

**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

@jmkiley jmkiley added Android Mapbox Maps SDK for Android annotations Annotations on iOS and macOS or markers on Android labels Jul 12, 2017
@tobrun
Copy link
Member

tobrun commented Jul 14, 2017

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

@tobrun
Copy link
Member

tobrun commented Jul 24, 2017

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.

@tobrun
Copy link
Member

tobrun commented Jul 24, 2017

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.

@tobrun
Copy link
Member

tobrun commented Sep 27, 2017

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.

@tobrun tobrun closed this as completed Sep 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android annotations Annotations on iOS and macOS or markers on Android
Projects
None yet
Development

No branches or pull requests

3 participants