Modify

Opened 5 years ago

Closed 4 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 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 5 years ago.
PreferenceDialog.diff (1.5 KB) - added by Henry Loenwind 5 years ago.
DrawingPreference.diff (9.5 KB) - added by Henry Loenwind 5 years ago.
ColorPreference.diff (1.8 KB) - added by Henry Loenwind 5 years ago.
LafPreference.diff (1.7 KB) - added by Henry Loenwind 5 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by Henry Loenwind

  • Component changed from unspecified to Core

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 5 years ago by Henry Loenwind

  • Summary changed from Only draw a reasonable amout of arrows on GPS traces to [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 5 years ago by Henry Loenwind

Changed 5 years ago by Henry Loenwind

Changed 5 years ago by Henry Loenwind

Changed 5 years ago by Henry Loenwind

Changed 5 years ago by Henry Loenwind

comment:3 Changed 4 years ago by stoecker

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r1165.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.