Opened 13 years ago
Closed 8 years ago
#483 closed enhancement/feature request (fixed)
navigation_next_turn using level
Reported by: | mibraun | Owned by: | Singesang |
---|---|---|---|
Priority: | major | Milestone: | version 0.6.0 |
Component: | osd/core | Version: | git master |
Severity: | normal | Keywords: | turn, routing, osd |
Cc: |
Description
Hi,
I wanted to create a navit skin with displays the next three turns on the osd. Therefore I needed to adopt the navigation_next_turn plugin in order to select the turn whose icon I wanted to be displayed.
This resulted in a new (reused) attribute called "level" for the navigation_next_turn plugin. Setting level=0 (which is the default) doesn't change anything. Setting level=n>0 gives the icon for the n-th turn in advance.
Please find a patch agains SVN HEAD and a screenshot attached.
Attachments (2)
Change History (9)
Changed 13 years ago by mibraun
Changed 13 years ago by mibraun
comment:1 Changed 13 years ago by mibraun
- Summary changed from navigation_next_turn to navigation_next_turn using level
comment:2 Changed 13 years ago by sera
comment:3 Changed 12 years ago by mibraun
I'm not sure, doesn't level contain meters?
comment:4 Changed 12 years ago by korrosa
Mibraun - I think what sera was trying to point out is that you should probably have the distances displayed in cumulative metres, not metres from the previous turn.
For example, using your screenshot as an example, the cursor is at position X. In 70 metres, I need to turn left. In 320 metres from my current position X, I need to turn right (i.e. 250m after the first turn). In 520 metres from my current position X, I need to turn left (i.e. 200m after the second turn).
It might make more sense to make the distances to the next turns relative to the current position, not the previous turn.
comment:5 Changed 12 years ago by gefrierbrand
I really like this skin. Can download it anywhere? Afaik it's not listed in the wikis OSD page
comment:6 Changed 10 years ago by usul
- Keywords turn routing osd added
- Milestone set to version 0.6.0
Obviously this patch hadn't be applied yet.
I assign it to the new major release, as it increases designers flexibility.
comment:7 Changed 8 years ago by kazer
- Resolution set to fixed
- Severity set to normal
- Status changed from new to closed
Patch has been applied in r2635.
To use the new osd, just add a level attribute.
Example :
<osd x="0" y="120" w="80" h="80" type="navigation_next_turn" /> <osd x="0" y="120" w="80" h="80" type="navigation_next_turn" level="1" />
Hi mibraun,
looking at the screen shots it says in 70m, 250m, 200m. Shouldn't that be in 70m, 320m, 520m instead?