lousoperscopimaligni
Member
I have this code and all work perfectly, only the polyline not showing....how can i do?
PolyLine Implementation:
' Aggiunta di un marker sulla mappa
Dim lat As Double = DR_VISITE.GetString("Latitudine")
Dim lng As Double = DR_VISITE.GetString("Longitudine")
Dim RAGSOCCLI As String = DR_VISITE.GetString("RAGSOCCLI").Trim
GoogleMaps.AddMarker(lat, lng, RAGSOCCLI)
Log("lat: " & lat & "lng: " & lng)
Dim point As LatLng
point.Initialize(lat,lng)
Dim line As Polyline = GoogleMaps.AddPolyline()
line.Color = Colors.Black
line.Geodesic = True
line.Visible = True
line.Width = 10
line.Points.Add(point)
Log(line.Points.Size)
Dim cp As CameraPosition
cp.Initialize(lat,lng, 0)
GoogleMaps.AnimateCamera(cp)