Opened 8 years ago

Last modified 10 days ago

#930 new defect/bug

"${zoom}" prints nothing

Reported by: jpduval2008 Owned by: KaZeR
Priority: minor Milestone: version 0.6.0
Component: core Version: git master
Severity: Keywords:


I would like to print the length of the scale using zoom to check the zoom level.

The zoom function can't be used for the value of the label property of a text OSD.

Here is the test case :

<osd enabled="yes" type="scale" x="0" y="64" w="360" h="16" use_overlay="1" font_size="500" text_color="#000000" font_color="#000000"


<osd enabled="yes" type="text" x="360" y="64" w="120" h="16" label="${zoom}" font_size="250" font_color="#FFFFFF"

text_color="#FFFFFF" background_color="#000000FF" osd_configuration="1"/>

Change History (9)

comment:1 Changed 8 years ago by korrosa

I'm confused - ${zoom} shouldn't work, because it isn't implemented. Have you got information otherwise?

comment:2 Changed 8 years ago by jpduval2008

I just read and try to apply what is written into the documentation. See :

My purpose is just to write the mening of the scale i.e. 50 m, 100 m, 1 Km, etc. If you have any other idea that decoding the zoom level, I will appreciate.

comment:3 Changed 8 years ago by korrosa

That wiki page doesn't mention "${zoom}". However, there should be a figure written underneath the horizontal line of the scale OSD which shows the scale. What device are you using?

comment:4 Changed 8 years ago by jpduval2008

1) See at the end of the page of the wiki, "zoom" is quoted as a function for command. And I would like to use it into the value of a label of a text.

2) I have no figure underneath the horizontal line. My device is Motorola Defy.

comment:5 Changed 8 years ago by korrosa

OK, I see how it can be mis-construed. Those attributes are for changing the zoom levels. As you've found out, you can't display the zoom level as a text value.

The scale not showing underneath sounds like a bug. My line in navit.xml is as follows:

<osd enabled="yes" type="scale" x="-90" y="290" font_size="150" w="100" h="30" align="0"/>

Could you share yours navit.xml line? Perhaps the font_size attribute is important? We've had a report before of someone on an Android phone not seeing the scale value on the OSD, so it'd be great if we could confirm this in this ticket.

comment:6 Changed 8 years ago by jpduval2008

Here is the extract of my navit.xml :

<osd enabled="yes" type="scale" x="0" y="64" w="360" h="64" use_overlay="1" font_size="150" text_color="#FFFFFF" font_color="#FFFFFF" background_color="#000000FF" osd_configuration="1"/>

I tried to change colors with no success ; to increase the width and the height with no success.

I use metric units ; not imperial. It may be important.

comment:7 Changed 6 years ago by usul

  • Milestone set to version 0.5.1
  • Priority changed from major to minor

So what is the answer to this ticket?

  • Fixing docs to be less confusing
  • Implementing a zoom variable (would be usefull for designers as me)
  • Nothing at all

comment:8 Changed 17 months ago by

  • Milestone changed from version 0.5.1 to version 0.5.2

This ticket was pushed back in order to bring 0.5.1 out soon.

comment:9 Changed 10 days ago by

  • Milestone changed from version 0.5.2 to version 0.6.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.