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

2017-05-19 Thread Fabien Bodard
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

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

2017-05-17 Thread 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:

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

2017-05-16 Thread Fabien Bodard
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

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

2017-05-16 Thread 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

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

2017-05-14 Thread 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.

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

2016-10-31 Thread Fabien Bodard
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

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

2016-10-30 Thread 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

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

2016-10-30 Thread 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