Android Question Rotate a Google Maps Marker

piedy

Member
Licensed User
Longtime User
Hi,

I'm currently experiencing an error rotating a marker on a google map. It compiles fine but during execution, I get an error message:

java.lang.NoSuchMethodError: com.google.android.gms.maps.model.MarkerOptions.rotation

Any help appreciated.

Thanks.

Full code below (gmapExtras is a object of type GoogleMapExtras)

B4X:
Dim MarkerOptions1 As MarkerOptions
MarkerOptions1.Initialize
              
MarkerOptions1.Position2(lat, lng).Visible(True)
              
Dim BitmapDescriptor1 As BitmapDescriptor
Dim BitmapDescriptorFactory1 As BitmapDescriptorFactory
BitmapDescriptor1=BitmapDescriptorFactory1.FromAsset("vor.png")
MarkerOptions1.Icon(BitmapDescriptor1)
MarkerOptions1.Rotate(90)
              
Dim Marker1 As Marker = gmapExtras.AddMarker(gmap, MarkerOptions1)
 
Top