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

custom poi: does not display
http://forum.navit-project.org/viewtopic.php?f=6&t=524
Page 1 of 1

Author:  malcolm [ 27 Aug 2014, 22:10 ]
Post subject:  custom poi: does not display

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.

Author:  xenos1984 [ 28 Aug 2014, 07:23 ]
Post subject:  Re: custom poi: does not display

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"

Author:  malcolm [ 28 Aug 2014, 20:52 ]
Post subject:  Re: custom poi: does not display

Thanks for the reply but, unfortunately, the problem remains.

Author:  xenos1984 [ 29 Aug 2014, 07:18 ]
Post subject:  Re: custom poi: does not display

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.

Author:  malcolm [ 30 Aug 2014, 22:02 ]
Post subject:  Re: custom poi: does not display

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!

Author:  xenos1984 [ 31 Aug 2014, 08:46 ]
Post subject:  Re: custom poi: does not display

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.

Author:  malcolm [ 03 Sep 2014, 20:00 ]
Post subject:  Re: custom poi: does not display

Worked OK.
Thanks.

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