Hi All,
I am trying to detect when a Google map is changed. IE Dragged, rotated or zoomed. It is fairly clear that the Google Maps "CameraChanged" feature is the key but I am unable to find out how to do this. Below is my feeble attempt at guess working the solution.
Can someone please point me to an example, I am sure there are some somewhere on the forum.
Regards Roger
I am trying to detect when a Google map is changed. IE Dragged, rotated or zoomed. It is fairly clear that the Google Maps "CameraChanged" feature is the key but I am unable to find out how to do this. Below is my feeble attempt at guess working the solution.
Can someone please point me to an example, I am sure there are some somewhere on the forum.
B4X:
Sub mFragmentListener_CameraChanged(Position As CameraPosition)
Log("CameraChanged")
Projection1=GoogleMapsExtras1.GetProjection(gmap)
MarkerLocation = BTSMarker.Position
ScreenPosition = Projection1.toScreenLocation(MarkerLocation)
XX = ScreenPosition.X
YY = ScreenPosition.Y
' Other stuff
End Sub
Regards Roger