when building a google map first time, with two markers, the markers are displayed multiple times (see picture). By clicking on zoom, the map gets refreshed and the two markers are displayed correctly.
When rebuilding the map again with different markers, the markers are build correctly.
Have tried to init the cameraposition twice with different zoomlevels, but that did not solve the issue.
#If B4J
Sub SetCameraPostion(mMap As GoogleMap, mLat As Double, mLon As Double, mZoomLevel As Float)
Log("SetCameraposition: Zoomlevel=" & mZoomLevel)
Dim cp As CameraPosition
cp.Initialize(mLat, mLon, mZoomLevel)
mMap.MoveCamera(cp)
End Sub
#End If
USE .visible /// first false / then change position / then make it visible again!!!!
B4X:
Sub bam_tick
boom.Enabled=False
mark(hr).Visible=false
Dim NewPosition As LatLng
NewPosition.Initialize(ooo,15)
ooo=10+NewPosition.Latitude+0.0001
m(1).Position=NewPosition
Sleep(50)
mark(hr).Visible=True
boom.Enabled=True
End Sub