diff options
author | Brad Leege <bleege@gmail.com> | 2015-11-13 17:23:45 -0600 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2015-11-13 17:49:08 -0600 |
commit | a6e639b79401c57f403dd6a2ec73396727375e19 (patch) | |
tree | 2124242419c6e50ad7c50bc0e434487476b72be5 /android | |
parent | e2e5b380fb9178e3a7bbefab3e2be57b5c9a6bf9 (diff) | |
download | qtlocation-mapboxgl-a6e639b79401c57f403dd6a2ec73396727375e19.tar.gz |
[android] #3029 - Adding removeMarker() convenience method
Diffstat (limited to 'android')
-rw-r--r-- | android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java b/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java index eeca273b6e..8844184142 100644 --- a/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java +++ b/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java @@ -1868,6 +1868,18 @@ public final class MapView extends FrameLayout { return new ArrayList<>(polygons); } + + /** + * Convenience method for removing a Marker from the map. + * + * Calls removeAnnotation() internally + * @param marker Marker to remove + */ + @UiThread + public void removeMarker(@NonNull Marker marker) { + removeAnnotation(marker); + } + /** * Removes an annotation from the map. * |