navit-project.org

forum for navit navigation tool
It is currently 21 Nov 2017, 19:17
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the installation and configuration of Navit.

Some notes before your first post:

Please provide as much informations as possible:



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: custom poi: does not display
PostPosted: 27 Aug 2014, 22:10 
Offline

Joined: 22 Aug 2014, 20:30
Posts: 6
Hi,
I am trying to insert a custom poi on my map.
I follow: http://wiki.navit-project.org/index.php/Custom_POIs
but the icon does not display.

I am using: /navit-code-5870-trunk on Debian Wheezy.

I have the following.
In navit.xml
Code:
<!-- Mapset template for openstreetmaps -->
                <mapset enabled="yes">
                        <map type="binfile" enabled="yes" data="/home/malcolm/Projects/roadside_guide/maps/osm_bbox_165.2,-47.6,179.1,-33.7.bin"/>
                        <map type="textfile" enabled="yes" data="/home/malcolm/Projects/roadside_guide/maps/my_pois.txt"/>
                </mapset>

the contents of /home/malcolm/Projects/roadside_guide/maps/my_pois.txt is:
Code:
mg:45.866807 S 170.504904 E type=poi_custom0 label="Wendy House" icon_src="/home/malcolm/Projects/roadside_guide/maps/ruins_64_64.png"

ruins_64_64.png is copied from the xml directory.

The map displays correctly but the icon does not appera where it should.


 Profile  
 
 Post subject: Re: custom poi: does not display
PostPosted: 28 Aug 2014, 07:23 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
The coordinate format looks a bit strange. Try this:
Code:
mg:-45.866807 170.504904 type=poi_custom0 label="Wendy House" icon_src="/home/malcolm/Projects/roadside_guide/maps/ruins_64_64.png"


 Profile  
 
 Post subject: Re: custom poi: does not display
PostPosted: 28 Aug 2014, 20:52 
Offline

Joined: 22 Aug 2014, 20:30
Posts: 6
Thanks for the reply but, unfortunately, the problem remains.


 Profile  
 
 Post subject: Re: custom poi: does not display
PostPosted: 29 Aug 2014, 07:18 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
What do the lines starting with <itemgra item_types="poi_custom0 in your navit.xml look like? The default style shows custom icons only at higher zoom levels, so you might need to reduce the number following order=.

Also, did you check that the icon path and coordinates are correct? I use the custom POI feature as well, my text file map looks the same as yours, and it works fine for me.


 Profile  
 
 Post subject: Re: custom poi: does not display
PostPosted: 30 Aug 2014, 22:02 
Offline

Joined: 22 Aug 2014, 20:30
Posts: 6
Those suggestions still do not solve my problem. Everything seems correct.
BUT, there seems something wrong with the map I'm using. (New Zealand from http://maps5.navit-project.org/ predefined area.)
I downloaded the map for Germany and put my 'Wendy House' at 55:37:38N 12:59:7 E and lo and behold the correct icon appears!


 Profile  
 
 Post subject: Re: custom poi: does not display
PostPosted: 31 Aug 2014, 08:46 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
Oh, I should have seen this... Navit expects the coordinates in the order longitude, latitude. I just tried it with your coordinates, and then changed the line to:
Code:
mg:170.504904 -45.866807 type=poi_custom0 label="Wendy House" icon_src="/home/malcolm/Projects/roadside_guide/maps/ruins_64_64.png"

And it worked.

I will add this information to the wiki.


 Profile  
 
 Post subject: Re: custom poi: does not display
PostPosted: 03 Sep 2014, 20:00 
Offline

Joined: 22 Aug 2014, 20:30
Posts: 6
Worked OK.
Thanks.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 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:  
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