[android] #3976 - remove annotations doesn't work

This commit is contained in:
Tobrun
2016-02-16 16:08:10 +01:00
parent 6249f9f674
commit f0e0a39acd

View File

@@ -804,6 +804,12 @@ public class MapboxMap {
*/
@UiThread
public void removeAnnotations() {
int count = mAnnotations.size();
long[] ids = new long[count];
for (int i = 0; i < count; i++) {
ids[i] = mAnnotations.keyAt(i);
}
mMapView.removeAnnotations(ids);
mAnnotations.clear();
}