How can I add all the titles to each of the markers.
Any ideas ?, thanks
I tried Dim marker2 () as Marker and inside the for marker2 (i) but without success.
Any ideas ?, thanks
I tried Dim marker2 () as Marker and inside the for marker2 (i) but without success.
B4X:
Dim marker2 As Marker
........................................
Sub JobDone(job As HttpJob)
If job.Success Then
res = job.GetString
Log("Response from server: " & res)
parser.Initialize(res)
Select job.JobName
Case chicas
todas = parser.NextArray 'returns a list with maps
For i = 0 To todas.Size - 1
numero=todas.Size-1
m = todas.Get(i)
Dim latitud As Float
latitud =m.Get("latitud")
Dim longitud As Float
longitud=m.Get("longitud")
Dim nombre As String
nombre=m.Get("nombre")
marker2=GoogleMap1.AddMarker(latitud,longitud, nombre)
marker2.InfoWindowShown=True
Next
End Select
Else
Log(job.ErrorMessage)
ToastMessageShow("Error: " & job.ErrorMessage, True)
End If
job.Release
End Sub