I am able to hide POI (points of interest) for Google Maps in B4A by using the below code:
I can't port this to B4i because of no JavaObject
Is there a way to do this in B4i?
B4X:
...........map code here
Dim MapStyle As String = $"[{"featureType":"poi","stylers":[{"visibility": "off"}]}]"$
SetGoogleMapStyle(gmap, MapStyle) 'this is used to make points-of-interest (restaurants, businesses, etc.) invisible
..........more map code here
Public Sub SetGoogleMapStyle(mGoogleMap As GoogleMap, mMapStyle As String) As Boolean 'this is used to make points-of-interest (restaurants, businesses, etc.) invisible
Dim jo As JavaObject = mGoogleMap
Dim style As JavaObject
style.InitializeNewInstance("com.google.android.gms.maps.model.MapStyleOptions", Array(mMapStyle))
Return jo.RunMethod("setMapStyle", Array(style))
End Sub
I can't port this to B4i because of no JavaObject
Is there a way to do this in B4i?