Hello
I'm using TTMSFMXWEBGMaps, and I'm developing a similar Uber software for one client.
When the user use the Application it needs to show the GPS point in the Map, refresh doesn't need to be in real time, It can refresh it after 15-25 seconds.
However I code the application in order to mark the initial position, and with a TTimer (15-25 seconds) delete the initial gps position, and paint the new one using the new gps coordinates return by the sensor.
Next code used when enter the map for the first time
procedure TMapa.MarcadorPosicionGPS();
Var
Marcador: TMarker;
Begin
// Eliminamos cualquier marcador del usuario actual
NavegadorWEB.Markers.Clear;
// Mostramos el mapa
Marcador := NavegadorWEB.Markers.Add;
Marcador.Latitude := 234234;
Marcador.Longitude := 23423;
Marcador.Draggable := False;
Marcador.Icon := 'http://192.168.1.2/PinAzul.png';
NavegadorWEB.CreateMapMarker(Marcador);
NavegadorWEB.MapPanTo(234234, 23423);
End;
How can refresh or move the initial marker point based on the new gps coordinates?
Regards