[Gambas-user] gb.map question

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


On Sun, 2014-01-05 at 22:31 +0100, Fabien Bodard wrote:
> This is a bug i have corrected later. Normally now you can us

Okay, I'll install Gambas 3.5.1 in a VM to see it work :)

> 
> 2014/1/5 Willy Raets <willy at ...2734...>:
> > 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
> >

-- 
Kind regards,

Willy (aka gbWilly)

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








More information about the User mailing list