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.
 

AnandGupta

Expert
Licensed User
Longtime User
B4X:
Sub ClearTheMap(gMapView As GoogleMap)  
    Dim NO As NativeObject = gMapView
    NO.RunMethod("clear", Null ))
End Sub
Will this work in B4A ?
As the this is B4I section so I ask.

Regards,

Anand
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…