GPS marker position on movement.

Pieter

Once again I need your help, I make one marker update its position based on a gps coordinates. In fact I see the movement in the WebGMap component with the next code:

WebGMap.Markers[0].Latitude := NewLocation.Latitude;
WebGMap.Markers[0].Longitude := NewLocation.Longitude;

The WebGMap first marker created is the one painted on blue in order to represent the actual position of the user, this marker I created using the next code:


Marcador := WebGMap.Markers.Add;
     Marcador.Latitude := ValorLatitud;
     Marcador.Longitude := ValorLongitud;
     Marcador.Draggable := False;
     Marcador.Clickable := False;
     Marcador.Icon := 'http://somewhere.com/bluecircle.png';
     NavegadorWEB.CreateMapMarker(Marcador);

After I created the gps marker above, I create more markers on the WebGMap representing incidents with the next code:

Marcador2 := WebGMap.Markers.Add;
                         Marcador2.Latitude := StrToFloat(LatitudIncidente);
                         Marcador2.Longitude := StrToFloat(LongitudIncidente);
                         Marcador2.Draggable := False;
                         NavegadorWEB.CreateMapMarker(Marcador2);


All the code above works, except that the first marker the gps user position doesn't move it, it moves the next standard red balloon marker of the incidents, I want to move the first marker in the Markers[] array, can you help me please?