Opened 16 years ago
Closed 16 years ago
#1607 closed enhancement (fixed)
[PATCH] Only draw a reasonable amout of arrows on GPS traces
Reported by: | xeen | Owned by: | framm |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
Set JOSM to draw arrows for GPS points.
Either download an area where someone was mapping by foot or just zoom out a little.
There are so many arrows drawn that it's almost impossible to make out the direction without zooming in, even when there is only one trace for that particular road. When zooming in you easily loose track of "the whole image" making mapping harder than it has to be :)
Ideally JOSM would only draw an arrow every 25 pixels or so. I have no idea if the map gets actually re-rendered on zooming. If not, introducing something like this would slow JOSM down quite a bit. Maybe a pref that lets JOSM only draw an arrow for every n-th GPS point is a better solution then (although it would be better controlled by toolbar buttons or shortcuts, because having to take a detour for the prefs dialog everytime would su… be less optimal :)).
Attachments (5)
Change History (8)
comment:1 by , 16 years ago
Component: | unspecified → Core |
---|
comment:2 by , 16 years ago
Summary: | Only draw a reasonable amout of arrows on GPS traces → [PATCH] Only draw a reasonable amout of arrows on GPS traces |
---|
Here's the patch.
I also split the "Display Settings" pane, as it was getting much too long.
Note: Patch is against v1010 + #1622
by , 16 years ago
Attachment: | GpxLayer.diff added |
---|
by , 16 years ago
Attachment: | PreferenceDialog.diff added |
---|
by , 16 years ago
Attachment: | DrawingPreference.diff added |
---|
by , 16 years ago
Attachment: | ColorPreference.diff added |
---|
by , 16 years ago
Attachment: | LafPreference.diff added |
---|
Everything is drawn from scratch every time something changes.
At the moment I won't draw the arrow if a GPS point is less than 1 pixel away from the last one. I see no problem in changing that to less than [config-value] pixels, unless someone wants me to calculate those pixels in real distance rather than x/y values.