Yes, I'm using GoogleMapsExtra library.
I'm sure the solution is very simple but I'm a bit disoriented.
Actually i have declared in globals:
Dim Pline As Polyline
Dim Points As List
Now, when the marker changes its position, I use this code to add a segment to the polyline
Sub Add_Track(la As String, lo As String)
Dim l1 As LatLng
l1.Initialize(la,lo)
Points.Add(l1)
If Pline.IsInitialized=False Then Pline=GoogleMap1.AddPolyline
Pline.Points=Points
Pline.Color=Colors.blue
Pline.ZIndex=3
End Sub
My problem is that each marker needs a separate polyline, otherwise if marker "John" moves, then marker "Paul" moves, I have a segment that connect John to Paul and that's not correct. The Pline of John must be separated form Paul's one.
So, when Marker "John" is first time created on the map, I need to create a John_Pline.
I suppose I have to create an array of polylines but I'm a bit confused .....