I want to dynamically add points on a gb.map
I have :
Public Sub _New()
MapView1.Map.AddTile("OpenStreet", "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png")
MapView1.Map.AddShape("P")
End
then, this function is called periodically :Public Sub drawPoint()
Dim c As String
c = Str(Rand(65, 90))
Print "drawing " & pointLat & " " & pointLon & " " & timeStamp
MapView1.Map["P"].AddPoint("c", MapPoint(pointLat, pointLon))
MapView1.Map.Center(pointLat, pointLon)
End
I get the error : this key already exists in Fmain:20 How to solve this? Thank you