[Gambas-user] How to use gb.map ".AddPolyLine( )" method ?

Fabien Bodard gambas.fr at ...626...
Mon Oct 31 10:38:51 CET 2016


Hi Vuott,

First, Thank you for using my code... It need user and reports o be
debugged and inprooved.

So by making an example i've just find i never use polyline :-) ... so
i've not see that polyline simply not work.
This is corrected in the last svn. (I've also remove a bad visual
thing in the back zoom)

Yes i know that component really nee doc as it is quite complexto
unerstand. Even if i've do all my possible to make it simpler.

Public Sub Form_Open()


  Dim hPolyLine As New MapPoint[]
  MapView1.Map.AddTile("GoogleMap",
"https://khms{s}.google.fr/kh/v={version}&src=app&x={x}&y={y}&z={z}&s=Galile",
["version": "702"]).SubDomains = ["0", "1", "2"]
  MapView1.Map["GoogleMap"].Visible = True


  With MapView1.Map.AddShape("Poly")

    hPolyLine = [MapPoint(48.457454, -4.638139), MapPoint(51.123363,
2.217329), MapPoint(48.921609, 8.106001), MapPoint(43.833550,
7.666547),
    MapPoint(42.487303, 3.008345), MapPoint(43.324192, -1.825640)]



    .AddPolyLine("Section 1", hPolyLine)


  End With



End


gb.map was a try to have a tool OffLine. So if you add a cache name in
the addtile call he map is auto magically cached and usable of line.

Then the mapview class is just a dynamic call to the composer class
Map. The advantage is i can use map everywhere for static catch like
in a printed report (this was my goal first).

gb.map can show every kind of map (near)





2016-10-30 18:04 GMT+01:00 Gianluigi <bagonergi at ...626...>:
> Relaunch this request from Ru Vuott:
>
> Hello,
>
> is it possible a very simple example of
> MapView1.Map.AddShape(".....").AddPolyLine(.......) Method ?
>
> Regards
>
> vuott
> ------------------------------------------------------------------------------
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list