navit-project.org

forum for navit navigation tool
It is currently 19 Nov 2017, 21:30
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  [ 4 posts ] 
Author Message
 Post subject: How Navit is rendering the maps?
PostPosted: 06 Jan 2014, 05:35 
Offline

Joined: 06 Jan 2014, 05:27
Posts: 3
Hi,

I am trying to integrate Navit to our linux based system and would like to know how Navit is rendering the maps in the GUI. Is it using special libraries or its own code to render the map?

I have been referring the source code of version Navit 0.5.0, please let me know which files do I need to refer to understand the Map rendering.

Thanks in advance,
Bala.


 Profile  
 
 Post subject: Re: How Navit is rendering the maps?
PostPosted: 06 Jan 2014, 08:18 
Offline
User avatar

Joined: 07 Jun 2013, 09:32
Posts: 200
Location: Rostock, North Germany
Navit has different modules (we call them GFX drivers) to render the vector data using different existing technologies:
  • SDL
  • GTK
  • QT
  • OpenGL
  • Win32 GDI
This makes Navit highly portable as usually at least one interface is supported by a target platform. They all live in the /graphics source directory.

You might want to have a look at this page:
http://wiki.navit-project.org/index.php/Embedding
A more general introduction to Navit as a framework might be this page:
http://wiki.navit-project.org/index.php/Development


 Profile  
 
 Post subject: Re: How Navit is rendering the maps?
PostPosted: 07 Jan 2014, 06:24 
Offline

Joined: 06 Jan 2014, 05:27
Posts: 3
Thank you usul. That was informative.

Our project is going to use HTML5 GUI (runs on Chromium browser) running in the Linux platform. We would like to integrate Navit into the GUI rather than embedding the Navit App.

I think I would need to develop HTML5 GUI plugin and a WebGL graphics driver (similar to OpenGL). Is my solution correct?

Do you think I can reuse any of the existing Graphics to run in Chromium browser? Remodel the GUI to fit into HTML GUI?

I would need something similar to the below implmentation, but have no idea how to achive it,
http://wiki.navit-project.org/index.php ... plugin.png

Any helpful information is greatly appreciated.

Thank you,
Bala.


 Profile  
 
 Post subject: Re: How Navit is rendering the maps?
PostPosted: 09 Jan 2014, 11:17 
Offline
User avatar

Joined: 07 Jun 2013, 09:32
Posts: 200
Location: Rostock, North Germany
Well I'm not an expert, but I guess you can't embedd Navit (as it's C code) at client side. But you can create a service that publishes your functionality via RPC and WebAPIs that can be triggered using JS and presented via HTML.

But I guess there are better solutions for your case, as using a OSM Rendering stack with a own mapserver to display maps via web map frameworks. For routing you can host other services that are build to deal with a large amount of requests. And with GeoIP and browser extensions you can detect the position.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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:  
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