-
Notifications
You must be signed in to change notification settings - Fork 1.3k
MapboxMap.removeAnnotations() doesn't remove markers #4553
Comments
@vfaSonnt thank you for brining this to our attention.
Not all the markers were removed but some are. I'm guessing that the ids passed to core are not correct. |
When adding marker, I'm seeing these ids: 03-31 10:39:03.683 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: marker added with 6
03-31 10:39:06.421 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: marker added with 10
03-31 10:39:09.271 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: marker added with 11 When I inspect the first added marker with id 03-31 10:39:21.524 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: 0
03-31 10:39:21.524 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: 1
03-31 10:39:21.524 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: 2
03-31 10:39:21.524 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: 3
03-31 10:39:21.524 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: 4
03-31 10:39:21.524 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: 5
03-31 10:39:21.524 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: 6
03-31 10:39:21.524 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: 10
03-31 10:39:21.524 15756-15756/com.mapbox.mapboxsdk.testapp V/TAG: 11 This is a regression from the fix in #4393. |
I found a fix for this by ensuring it's only called once without changing the event type, |
Thank you very much! I checked, it is OK. Now I am waiting for next release. =) |
I just upgrade to 4.0.0 and this bug happen.
Method removeAnnotations() doesn't work anymore.
But removeMarker(Marker) still work.
I check on both android OS under 5.0 and above 5.0.
Both my project and Mapbox Example Source.
The text was updated successfully, but these errors were encountered: