I've added one marker and update the position plus change the camera position to that location. As it seems, there is no redraw of the map which causes the same marker to be drawn multiple times:
Zooming the map with +/- does a redraw (= ok) Do I miss something?
Code:
Zooming the map with +/- does a redraw (= ok) Do I miss something?
Code:
B4X:
Dim cp As CameraPosition
cp.Initialize(Row(2), Row(1), 18)
If MyMarker.IsInitialized = False Then
MyMarker=gmap.AddMarker(cp.Target.Latitude,cp.Target.Longitude,"Here you are")
End If
MyMarker.Position=cp.Target
gmap.MoveCamera(cp)