navit-project.org
http://forum.navit-project.org/

Overlay
http://forum.navit-project.org/viewtopic.php?f=14&t=486
Page 1 of 1

Author:  JBM [ 23 Jan 2014, 10:24 ]
Post subject:  Overlay

Hello,

I would like to add an overlay on the map for showing a route ?
Do you know if it is possible ? If yes, could you help me please ?

Thank you in advance for your assistance.

Best regards,

JB

Author:  xenos1984 [ 23 Jan 2014, 11:39 ]
Post subject:  Re: Overlay

Do you mean something similar to this?

viewtopic.php?f=16&t=457

Author:  JBM [ 23 Jan 2014, 14:55 ]
Post subject:  Re: Overlay

I mean that I put an overlay for showing an itinerary that I calculated myself.

-JB

Author:  xenos1984 [ 23 Jan 2014, 20:14 ]
Post subject:  Re: Overlay

Yes, this is possible in quite the same way as in the linked thread. I that case you would create the "textfile map" yourself and it would contain the itinerary instead of a recorded track. But the method for displaying it would be more or less the same.

Author:  JBM [ 24 Jan 2014, 13:35 ]
Post subject:  Re: Overlay

Thank you. But can you give an example of the file "textfile map" and how I can use it ?

Author:  xenos1984 [ 24 Jan 2014, 14:41 ]
Post subject:  Re: Overlay

The format is documented in the wiki:

https://wiki.navit-project.org/index.php/Textfile

For your case it would probably look more or less like this:

Code:
type=track_tracked
52.1234 12.5678
52,1235 12.5679
...

Author:  JBM [ 27 Jan 2014, 09:56 ]
Post subject:  Re: Overlay

Thank you very much for your answer. I succeeded to get it working !

But I have another question linked to the itinerary. Is it possible to add a description to the itinerary?

Author:  xenos1984 [ 27 Jan 2014, 10:48 ]
Post subject:  Re: Overlay

Great!

Hm... I think you can probably add some more tags as on the wiki page, maybe like this or similar:

Code:
type=track_tracked debug="name='Itinerary 1'"
52.1234 12.5678
52,1235 12.5679
...

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/