Clears all markers, polylines and ground overlays that has been added to the googlemap

Hi,

Clears all markers, polylines and ground overlays that has been added to the googlemap.

Usage :

B4X:
Sub ClearTheMap(gMapView As GoogleMap)   
    Dim NO As NativeObject = Me
    NO.RunMethod("clearMap:", Array As Object(gMapView))
End Sub

B4X:
#If OBJC
- (void) clearMap:(GMSMapView *)gMapView {
   [gMapView clear];
   }
#End If

Note : This will not clear the visible location dot or reset the current mapType.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…