Opened 12 years ago

Closed 8 years ago

Last modified 8 years ago

#166 closed enhancement/feature request (fixed)

Show the scale of the map on the screen

Reported by: latouche@… Owned by: somebody
Priority: minor Milestone: version 0.2.0
Component: osd/core Version: git master
Severity: Keywords:
Cc:

Description

Show a scale of the map (a little line saying 1cm == N km) so that we can know the distance between two points to have an idea of how far they are spaced out. This may be deactivable for those who want to save pixels on their screen

Attachments (1)

scale.png (4.4 KB) - added by mvglasow 11 years ago.
Map scale in build 2952

Download all attachments as: .zip

Change History (13)

comment:1 Changed 12 years ago by KaZeR

  • Milestone set to version 0.1.0

comment:2 Changed 12 years ago by Singesang

  • Component changed from graphics/gtk_drawing to osd/core

Changed 11 years ago by mvglasow

Map scale in build 2952

comment:3 Changed 11 years ago by mvglasow

Something like shown in the attachment? This is implemented as of at least build 2952.

<osd enabled="yes" x="0" y="-84" w="240" h="26" font_size="150" type="scale"/>

comment:4 Changed 10 years ago by kazer

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

comment:5 follow-up: Changed 9 years ago by aaaapublic

  • Resolution fixed deleted
  • Status changed from closed to reopened

When using scale on Android device ( Samsung Galaxy S, Gingerbread ), with the use_overlay tag as per the example in the wiki (<osd enabled="yes" x="0" y="-84" w="240" h="26" font_size="150" type="scale" use_overlay="1"/>), the text does not show up. Only the scale shows up.

Without the use_overlay tag, nothing shows up at all.

comment:6 Changed 9 years ago by elhennig

Also using Android, and no text is shown with use_overlay="1". Also the white color is pretty hard to see on day color schemes.

comment:7 in reply to: ↑ 5 Changed 9 years ago by crystalgfan .

Replying to aaaapublic:

When using scale on Android device ( Samsung Galaxy S, Gingerbread ), with the use_overlay tag as per the example in the wiki (<osd enabled="yes" x="0" y="-84" w="240" h="26" font_size="150" type="scale" use_overlay="1"/>), the text does not show up. Only the scale shows up.

Without the use_overlay tag, nothing shows up at all.


I have to confirm this for an SGS too with Froyo 2.2.1 Custom Rom.

comment:8 follow-up: Changed 9 years ago by korrosa

A change was made in svn last night which fixes a problem with colours in the scale osd item. http://navit.svn.sourceforge.net/navit/?rev=4784&view=rev. Can someone try this version and report back?

comment:9 in reply to: ↑ 8 Changed 9 years ago by crystalgfan .

Replying to http://wiki.navit-project.org/index.php/user:korrosa:

A change was made in svn last night which fixes a problem with colours in the scale osd item. http://navit.svn.sourceforge.net/navit/?rev=4784&view=rev. Can someone try this version and report back?



This line taken from Wiki works fine for me now:
<osd enabled="yes" x="1" y="-200" w="115" h="26" font_size="150" type="scale" use_overlay="1"/>

However, the number isn't readable when in car-dark mode because the text color doesn't change, it is still black I guess. The scale line has a white background in this case.

Last edited 9 years ago by crystalgfan . (previous) (diff)

comment:10 Changed 8 years ago by sleske

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

With current SVN version of Navit, the OSD scale works for me. The scale and the text both have a white border, so they are readable even in car-dark mode. That's using gtk_drawing_area or opengl graphics, internal GUI, on Linux.

So if there is still a problem with the display of the scale, it's probably specific to Android, or maybe depends on config settings. Therefore I'm closing this bug as fixed, as the original feature request is done.

If there are still problems with the scale, please file a new bug (feel free to link to this one).

comment:11 Changed 8 years ago by zoff99

comment:12 Changed 8 years ago by sleske

what about this: http://trac.navit-project.org/ticket/985 ???

Well, that's a bug. That's why it's still open. Thanks for linking it here.

Feel free to work on it :-).

Note: See TracTickets for help on using tickets.