[android] #4335 - add clear method for removing annotations to MapboxMap

This commit is contained in:
Tobrun
2016-04-08 10:03:21 +02:00
parent 7fa32a0d08
commit ef65d2015c
3 changed files with 21 additions and 1 deletions

View File

@@ -894,6 +894,14 @@ public class MapboxMap {
mAnnotations.clear();
}
/**
* Removes all markers, polylines, polygons, overlays, etc from the map.
*/
@UiThread
public void clear(){
removeAnnotations();
}
/**
* Return a annotation based on its id.
*