marcick Well-Known Member Licensed User Longtime User Jan 23, 2016 #1 I have some image thet need to be rotated of a certain angle before using as GoogleMap marker. In B4A there is MarkerOptions with rotate property but can't find the equivalent for B4I. Any hint ?
I have some image thet need to be rotated of a certain angle before using as GoogleMap marker. In B4A there is MarkerOptions with rotate property but can't find the equivalent for B4I. Any hint ?
Erel B4X founder Staff member Licensed User Longtime User Jan 24, 2016 #2 Add this sub to GoogleMapExtra class: B4X: Public Sub SetMarkerRotation(Marker As Marker, Rotation As Double) Dim m As NativeObject = Marker m.SetField("rotation", Rotation) End Sub https://www.b4x.com/android/forum/threads/class-googlemapsextra.56871/#content Upvote 0
Add this sub to GoogleMapExtra class: B4X: Public Sub SetMarkerRotation(Marker As Marker, Rotation As Double) Dim m As NativeObject = Marker m.SetField("rotation", Rotation) End Sub https://www.b4x.com/android/forum/threads/class-googlemapsextra.56871/#content