B4X:
gmap.AddMarker(37.772323, -122.214897, "Hello!!!")
gmap.AddMarker
(21.291982, -157.821856, "Hello2!!!")
Dim line As Polyline
Dim Points As List
Dim point As LatLng
line=gmap.AddPolyline
Points.Initialize
line.Color=Colors.Blue
line.Geodesic=True
line.Visible =True
line.Width=2
'line.ZIndex=0
point.Initialize(37.772323, -122.214897)
Points.Add(point)
point.Initialize(21.291982, -157.821856)
Points.Add(point)
line.Points=Points
Dim cp As CameraPosition
cp.Initialize(36, 15, gmap.CameraPosition.Zoom)
gmap.AnimateCamera(cp)
I want a code that makes a winding line on the street direction between a sign and my location
As in the picture
Last edited: