[Gambas-user] gb.map question

Willy Raets willy at ...2734...
Sun Jan 5 15:15:32 CET 2014


Hi all,

I have a Fmain with a MapView1.

Following code gives error: "Unknown symbol in 'AddPoint' in Class
'_MapLayer'"

The code is from an example shown on YouTube from may 2013 and there it
seems to work.

This is the code I used on FMain:

Public Sub _new()

   MapView1.Map.AddTile("OpenStreet",
"http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png") 
   MapView1.Map!OpenStreet.CopyRight = "OpenStreetMap Contributors"
   
   MapView1.Map.AddShape("MyShape")
   MapView1.Map!MyShape.AddPoint("Test", MapPoint(52.0, 5.10)) '<--ERROR
   
   MapView1.Map.Center = MapView1.Map!MyShape!Test.Points
   MapView1.Map.Zoom = 10
   

End

Public Sub Form_Open()

   Me.Center

End

I'm using Gambas 3.4.2. Has the AddPoint symbol been added in a later
Gambas version?


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org








More information about the User mailing list