Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colorize the track line #37

Open
vzoltan opened this issue Nov 16, 2014 · 11 comments
Open

Colorize the track line #37

vzoltan opened this issue Nov 16, 2014 · 11 comments

Comments

@vzoltan
Copy link

vzoltan commented Nov 16, 2014

Hi, i have an other feature request, to colorize the track line,
colors can be random or rainbow (loop) and set by time stamp to those who has no extended_info in "other" filed. those who has, would be nicer to be able to set a "filter" like:

other: %<status>1</status>%

or whatever they want to use.

the whole idea comes from here:
http://www.gpsvisualizer.com/display/20141115151902-16160-map.html

if traccar-web is loaded with more days for eg. ,
it would be nice to see easily which route was how long.

@antoniopaisfernandes
Copy link
Contributor

I've made a small change (antoniopaisfernandes@60c0adf) as a test to what could look like:
image

It is still a demo because it marks the entire tracks in one color and it should allow for subtracks.. Just wanted to see your opinion...

@antoniopaisfernandes
Copy link
Contributor

Hi,

I was doing some work related to colorizing vector tracks and regarding also with you recent change in layout (filter archive) I tried using a menu for Style:
image

I've used ColorMenu for that but it seems that it doesn't allow for smaller custom palettes. So I was trying to create a new class that could replace ColorMenu (by extending Menu) but I don't seem to nail it:

image

Do you know how can I solve that?

Thanks,
Antonio

@vitalidze
Copy link
Owner

Looks like you have defined somewhere in ArchiveView.ui.xml that your menu should have ColorMenu class. I guess you should derive ExtColorMenu class from ColorMenu and not from Menu.

@antoniopaisfernandes
Copy link
Contributor

Thanks...
I've made a first commit on the issue.
The idea is replace a ColorPalette with a more versatile set: "Style" (i know that later, I have to place all strings within i18n resources).
And then I remember the track icons (placed in the map when Load is pressed) could also be "styled". I thought of "Reduced" (like the orange dots used in "Rec. trace" - I find them neat) or completely removed (besides the Markers Overlay being active).

What do you think?
And about the replacement from a CollorPalette for a Style Menu?
Couldn't also be used a Menu for Filtering (or, at least, remove the "Disable filter" from the Archive bar and place it within the Filter box - the bar seems overcrowded)?

Best regards,
António Fernandes

@vitalidze
Copy link
Owner

The idea is replace a ColorPalette with a more versatile set: "Style" (i know that later, I have to place all strings within i18n resources).

I don't mind

And then I remember the track icons (placed in the map when Load is pressed) could also be "styled". I thought of "Reduced" (like the orange dots used in "Rec. trace" - I find them neat) or completely removed (besides the Markers Overlay being active).

Actually I had this in my plans. I like orange circles more too, but the thing is that right now they are not 'markers' and are drawn on same overlay as lines. I believe it would be best to create such a marker icon (for example in .png) and move it to marker layer (both in rec. trace and in archive view). Then, as you mentioned, you can always hide these markers by deactivating 'Markers' overlay.

And about the replacement from a CollorPalette for a Style Menu?

I think color should remain for multiple lines printing since it shows you in which color this particular device is shown on map. All other styles should be moved separately.

Couldn't also be used a Menu for Filtering (or, at least, remove the "Disable filter" from the Archive bar and place it within the Filter box - the bar seems overcrowded)?

About menu - I think it's a good idea. Regarding 'Disable filter' checkbox - I put it intentionally, so you can always see which settings are set up in archive. From my point of view it looks quite good since I moved speed filtering to that separate dialog box.

@antoniopaisfernandes
Copy link
Contributor

"I think color should remain for multiple lines printing since it shows you in which color this particular device is shown on map. All other styles should be moved separately."

Is this OK (it changes when color is selected in any palette)?

image

Regards,
Antonio Fernandes

@vitalidze
Copy link
Owner

Looks good.

@antoniopaisfernandes
Copy link
Contributor

@vzoltan, can you please update the gps visualizer link so that I can better see what you mean?

@vzoltan
Copy link
Author

vzoltan commented Jan 14, 2015

@antoniopaisfernandes
Hi, visualizer will delete it after X days but here you go:
http://www.gpsvisualizer.com/display/20150114150233-81023-map.html

it would be nice if traccar-web could show trips (between start/stop or between specified period of time)
with different colors.

Please use ZOOM IN to see other colors/segments/trips (each start and stop has its own color)

@antoniopaisfernandes
Copy link
Contributor

Record:
image

image

image

@antoniopaisfernandes
Copy link
Contributor

Implement first approach (antoniopaisfernandes@cbdb344):

  • Class Track will store TrackSements (each one with it's style)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants