I've been trying out Erel's example for GoogleMaps: https://www.b4x.com/android/forum/threads/google-maps.63930/
it's great, but can someone help me with how to detect a device that is sending its latitude and longitude parameters in real-time? In other words, instead of sending my position, I want to see the position of another device for which we know the latitude and longitude. I would appreciate it if someone could help me out."
This requires a server that receives the devices locations and publishes them to all other devices.
It can be done with B4J WebSockets server, but it requires a complete solution.
I understand correctly, how can I center the map on that marker so that when opening the activity, it shows the area corresponding to the map where the marker is located? Is it possible to center the map or initialize the map in that corresponding area?
?
this preserves the camera properties and only moves to the marker position
B4X:
Dim CameraPosition1 As CameraPosition = GoogleMaps1.CameraPosition
Dim NewCameraPosition As CameraPosition
NewCameraPosition.Initialize2(MarkerIconLocation.Position.Latitude, MarkerIconLocation.Position.Longitude, CameraPosition1.Zoom, CameraPosition1.Bearing, CameraPosition1.Tilt)
GoogleMaps1.AnimateCamera(NewCameraPosition)