Registered Member
|
Hi, I would like to make a multicolor route, i.e. when I have a route with few via points, I would like to have different colors between via points in my routing
(like o---o---o---o). i've tried to divide my N points route into N-1 routes (only with start and destination) and call routeManager->setRouteColorStandard(Qt::color). But since there are always two points overlapping it doesn't work well. Thanks for any help. |
KDE Developer
|
Interesting idea. Do you want to use that as an additional cue to separate routes with via points other than the (A), (B), (C) icons already drawn, or is there maybe some other distinguishing information? The latter might be easier to understand for users. E.g. for multimodal routing (different transport types) you could have one color for pedestrian routing, another for car, public transport etc.
Implementation wise I thought of adding similar API to the general polygon/polyline drawing that allows to associate metric data (e.g. a height or speed profile) with a polygon/polyline and convert it to colors in rendering. E.g. a track could indicate the speed with green for low and red for high speed similar to This could then be used to accomplish what you are looking for, and maybe even implemented by Marble's default route rendering if we find a convincing (easy to understand) color scheme. |
Registered Member
|
I'm writing an application which finds pedestrian routes in the mountains. It would be nice when i draw the route if the every part of that route corresponds with a trail color. Btw, is it possible to change color of the path on the map from its default gray? Or I have to do that by drawing lines/polygons?
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]