Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3695

webMapViewer and addLocation using array of location

$
0
0

hi,
i’m tring to using webMapViever by add an array of locations but its does not work

but it works if i add every single point
Has anyone had the same problem ?

this code does not works

Dim L() As WebMapLocation
Dim i As Integer
MapViewer1.Zoom=16
For i=0 To 50
  Dim u As New WebMapLocation(43.91045, 11.00712 +(i/100))
  L.Add(u)
Next i
MapViewer1.AddLocation(L)
MapViewer1.GoToLocation(L(0))

this code works

Dim L() As WebMapLocation
Dim i As Integer
MapViewer1.Zoom=16
For i=0 To 50
  Dim u As New WebMapLocation(43.91045, 11.00712 +(i/100))
  L.Add(u)
  MapViewer1.AddLocation(u)
Next i
MapViewer1.AddLocation(L)
MapViewer1.GoToLocation(L(0))

6 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3695

Trending Articles