Modify

Opened 11 years ago

Closed 11 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)

GpxLayer.diff (3.2 KB) - added by Henry Loenwind 11 years ago.
PreferenceDialog.diff (1.5 KB) - added by Henry Loenwind 11 years ago.
DrawingPreference.diff (9.5 KB) - added by Henry Loenwind 11 years ago.
ColorPreference.diff (1.8 KB) - added by Henry Loenwind 11 years ago.
LafPreference.diff (1.7 KB) - added by Henry Loenwind 11 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by Henry Loenwind

Component: unspecifiedCore

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.

comment:2 Changed 11 years ago by Henry Loenwind

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

Changed 11 years ago by Henry Loenwind

Attachment: GpxLayer.diff added

Changed 11 years ago by Henry Loenwind

Attachment: PreferenceDialog.diff added

Changed 11 years ago by Henry Loenwind

Attachment: DrawingPreference.diff added

Changed 11 years ago by Henry Loenwind

Attachment: ColorPreference.diff added

Changed 11 years ago by Henry Loenwind

Attachment: LafPreference.diff added

comment:3 Changed 11 years ago by stoecker

Resolution: fixed
Status: newclosed

Fixed in r1165.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.