Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

Commented Unassigned: color problem with GMapRoute [16079]

$
0
0
As stated in https://greatmaps.codeplex.com/discussions/457156 I was using version 1.6, and upgraded to the lastest beta (a3237323fb63) which resolved an issue with SetCurrentPositionByKeywords.
With the upgrade appeared a problem with the color of the routes.
I have the following code runing inside a "for/each" which displays each route in a diferent color

Dim p As GMap.NET.WindowsForms.GMapRoute
p = New GMap.NET.WindowsForms.GMapRoute(directions.Route, "Camino")
p.Stroke.Color = colores(j Mod 10)
RutaNueva.Routes.Add(p)
p.Stroke.DashCap = Drawing.Drawing2D.DashCap.Triangle
p.Stroke.EndCap = Drawing.Drawing2D.LineCap.ArrowAnchor

this section was doing fine in 1.6, but with this version, it draws all the routes the same color (the last color in the loop).
I´m doing something wrong, or is it some change in the new build that is affecting it?

Thanks a lot

Comments: I have the same issue v1.6 allowed for multiple routes each route could be set to a different color. The latest hot build now allows for more flexibility with markers which is great but I lost the ability to change the color of individual routes. The last selected color always colors all routes that color. Other then this routing problem I think this project is great! Thanks,

Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>