This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Multicolor route

Tags: None
(comma "," separated)
jpati
Registered Member
Posts
8
Karma
0

Multicolor route

Wed Feb 20, 2013 8:53 pm
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.
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS

Re: Multicolor route

Thu Feb 21, 2013 10:41 am
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 Image
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.
jpati
Registered Member
Posts
8
Karma
0

Re: Multicolor route

Thu Feb 21, 2013 5:38 pm
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?


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]