[android] #4335 - add clear method for removing annotations to MapboxMap
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user