navit-project.org

forum for navit navigation tool
It is currently 25 Jun 2017, 10:39
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the development process - coding, creating new features, fixing bugs and custom changes of Navit.

Note: For reporting bugs, use the bug tracker.



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Overlay
PostPosted: 23 Jan 2014, 10:24 
Offline

Joined: 22 Aug 2013, 06:52
Posts: 8
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


 Profile  
 
 Post subject: Re: Overlay
PostPosted: 23 Jan 2014, 11:39 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
Do you mean something similar to this?

viewtopic.php?f=16&t=457


 Profile  
 
 Post subject: Re: Overlay
PostPosted: 23 Jan 2014, 14:55 
Offline

Joined: 22 Aug 2013, 06:52
Posts: 8
I mean that I put an overlay for showing an itinerary that I calculated myself.

-JB


 Profile  
 
 Post subject: Re: Overlay
PostPosted: 23 Jan 2014, 20:14 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
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.


 Profile  
 
 Post subject: Re: Overlay
PostPosted: 24 Jan 2014, 13:35 
Offline

Joined: 22 Aug 2013, 06:52
Posts: 8
Thank you. But can you give an example of the file "textfile map" and how I can use it ?


 Profile  
 
 Post subject: Re: Overlay
PostPosted: 24 Jan 2014, 14:41 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
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
...


 Profile  
 
 Post subject: Re: Overlay
PostPosted: 27 Jan 2014, 09:56 
Offline

Joined: 22 Aug 2013, 06:52
Posts: 8
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?


 Profile  
 
 Post subject: Re: Overlay
PostPosted: 27 Jan 2014, 10:48 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
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
...


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS