Re: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ?
you can use the map.MapPointToPixelRel ( hMapPoint As MapPoint ) function to get directly the position on the draw area. 2017-05-17 10:02 GMT+02:00 ingo : > Hi Fabien, > thankx for the answer and the very fast implementation. > > I found a workaround in the meantime. Using the draw event of the MapView > let me draw lines with Paint. > But I will check the new gb.map class. > > Salut > Ingo > > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p59017.html > Sent from the gambas-user mailing list archive at Nabble.com. > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ?
Hi Fabien, thankx for the answer and the very fast implementation. I found a workaround in the meantime. Using the draw event of the MapView let me draw lines with Paint. But I will check the new gb.map class. Salut Ingo -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p59017.html Sent from the gambas-user mailing list archive at Nabble.com. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ?
This is done in the last revision. So you can use the polyline to draw endless line worms and change the line thinkness. map["MyShapeLayer"][MyObject].LineWidth Or for all layer objects (default Value =2): Map["MyShapeLayer"].LineWidth 2017-05-16 22:01 GMT+02:00 Fabien Bodard : > 2017-05-14 20:26 GMT+02:00 ingo : >> Hi Fabien, >> the gb.map works very well. Thank you for this. >> But I have questions about AddPolyLine: >> >> 1) The AddPolyLine() always draws the outline of polygon. Is it possible to >> have only lines with an 'open end'? >> I tried to set the last Mappoint to the same values as the next-to-last >> Mappoint. That does'nt help. > > you are right i've done a misstake. i use the paint.polygone to draw > the polyline. oups > > >> >> 2) Can I manipulate the thickness of the line? > > I can add this but it will be only on the svn version first. > >> >> Thank you in advance. >> Ingo >> >> >> >> -- >> View this message in context: >> http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p58976.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> -- >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ?
2017-05-14 20:26 GMT+02:00 ingo : > Hi Fabien, > the gb.map works very well. Thank you for this. > But I have questions about AddPolyLine: > > 1) The AddPolyLine() always draws the outline of polygon. Is it possible to > have only lines with an 'open end'? > I tried to set the last Mappoint to the same values as the next-to-last > Mappoint. That does'nt help. you are right i've done a misstake. i use the paint.polygone to draw the polyline. oups > > 2) Can I manipulate the thickness of the line? I can add this but it will be only on the svn version first. > > Thank you in advance. > Ingo > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p58976.html > Sent from the gambas-user mailing list archive at Nabble.com. > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ?
Hi Fabien, the gb.map works very well. Thank you for this. But I have questions about AddPolyLine: 1) The AddPolyLine() always draws the outline of polygon. Is it possible to have only lines with an 'open end'? I tried to set the last Mappoint to the same values as the next-to-last Mappoint. That does'nt help. 2) Can I manipulate the thickness of the line? Thank you in advance. Ingo -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p58976.html Sent from the gambas-user mailing list archive at Nabble.com. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ?
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 : > 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to use gb.map ".AddPolyLine( )" method ?
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to use gb.map ".AddPolyLine( )" method ?
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user