navit-project.org

forum for navit navigation tool
It is currently 22 Nov 2017, 20:18
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  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Flag/pin/marker for "Vew on map"?
PostPosted: 13 Oct 2013, 15:38 
Offline

Joined: 13 Oct 2013, 15:34
Posts: 9
I'm reposting this here as I didn't realise that the mailing list was closing down:

In Navit, if I go to Bookmarks and a particular bookmark, I get the
option to "View on map". This works as expected and takes me to the
right section of the map - but it doesn't place any flag, marker or pin
on the map to where the actual bookmark was made. Sometime I bookmark
individual buildings or features - and displaying an entire area means I
have to use some other reference source to find out exactly where does
the bookmark point to.

On the mailing list, somebody (sorry, I couldn't find a userid anywhere) mentioned a bookmarks layer. I Googled and can't find how to enable a bookmarks layer in Navit. Any suggestions?


 Profile  
 
 Post subject: Re: Flag/pin/marker for "Vew on map"?
PostPosted: 13 Oct 2013, 16:43 
Offline
User avatar

Joined: 07 Jun 2013, 09:32
Posts: 200
Location: Rostock, North Germany
Hi, this was myself at the mailinglist. Good to see you here :)

I checked it and obviously currently there is no default bookmarks layer at SVN. Here is how I added a layer to my map layout:
Code:
<layer name="bookmarks">
   <itemgra item_types="bookmark">
      <icon src="bookmark_32.png"/>
      <circle color="#009640" radius="0" width="0" x="10" y="10" text_size="10"/>
   </itemgra>
</layer>


 Profile  
 
 Post subject: Re: Flag/pin/marker for "Vew on map"?
PostPosted: 14 Oct 2013, 13:50 
Offline

Joined: 13 Oct 2013, 15:34
Posts: 9
Hi and thanks for the extra info. For the benefit of others, I found this bug report (http://trac.navit-project.org/ticket/735) and performed the following steps to get it working:

1. Download the bookmark_32.png from the above page and save it in /usr/share/navit/xpm
2. Copy the <map> line suggested at the above page somewhere inside your active <mapset> tag in your navit.xml
3. I had to amend the "$NAVIT_SHAREDIR" to "~/.navit/bookmark.txt" as my bookmarks don't live in the /usr/share/navit folder, which is a system wide folder. Not sure about other setups.
3. Copy the <layer> code inside your "car" <layout> tag. Amend as necessary if you normally use another layout (bike, foot etc.) Make sure you place it at the end of the <layout> section, after all the other layers. Otherwise the bookmarks icons get obscured by roads, waterways etc. which end up above them.

The above worked for me. Don't know if all of the steps are fully correct though - as I had to do some guessing.

I wonder if any of the above info has made it into the wiki yet. A google seach doesn't appear to be turning up anything.

Thanks again for the hints.


 Profile  
 
 Post subject: Re: Flag/pin/marker for "Vew on map"?
PostPosted: 14 Oct 2013, 14:26 
Offline
User avatar

Joined: 07 Jun 2013, 09:32
Posts: 200
Location: Rostock, North Germany
Ah ok, I didn't remembered, that it is still a ticket :roll:


 Profile  
 
 Post subject: Re: Flag/pin/marker for "Vew on map"?
PostPosted: 14 Oct 2013, 18:08 
Offline

Joined: 13 Oct 2013, 15:34
Posts: 9
I wonder if it would be a good idea to add this as a permanent/integrated functionality in Navit. Something like a setting in navit.xml - for example "show_bookmarks=1" as an attribute of the <general> tag - or in the GUI under settings - or both?


 Profile  
 
 Post subject: Re: Flag/pin/marker for "Vew on map"?
PostPosted: 14 Oct 2013, 19:23 
Offline
User avatar

Joined: 07 Jun 2013, 09:32
Posts: 200
Location: Rostock, North Germany
IMHO we should add this as the default behavior. About making it optional, I'm not sure.


 Profile  
 
 Post subject: Re: Flag/pin/marker for "Vew on map"?
PostPosted: 14 Oct 2013, 19:37 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
I also think that bookmarks should be shown on the map by default - I see no reason for not showing them, unless somebody has too many of them.


 Profile  
 
 Post subject: Re: Flag/pin/marker for "Vew on map"?
PostPosted: 15 Oct 2013, 11:31 
Offline
User avatar

Joined: 07 Jun 2013, 09:32
Posts: 200
Location: Rostock, North Germany
Well in the long run we need IMHO to have an eye on performance, as AFAIK the CSV fileformat uses no tricks for accelerating the lookup and always tests all items.
But hey, first let's start that way and then talk about improvements ;)


 Profile  
 
 Post subject: Re: Flag/pin/marker for "Vew on map"?
PostPosted: 15 Oct 2013, 17:07 
Offline

Joined: 09 Jul 2013, 17:41
Posts: 82
usul wrote:
Well in the long run we need IMHO to have an eye on performance, as AFAIK the CSV fileformat uses no tricks for accelerating the lookup and always tests all items.


May I ask you how have you concluded that?

Actually, csv file format is represented with quad tree in memory. Implementation has a drawback though: it is storing coordinates as floating point.

Anyway, I don't think there can be anybody having comparable as many bookmarks as there are osm nodes in 2x2 km square area in, say, Paris.


 Profile  
 
 Post subject: Re: Flag/pin/marker for "Vew on map"?
PostPosted: 22 Oct 2013, 11:49 
Offline

Joined: 26 Sep 2013, 10:59
Posts: 50
I added:
Code:
<map type="textfile" data="$NAVIT_SHAREDIR/data/bookmark.txt"/>

But on Android-Smartphone there is no text. (I have still no Picture for bookmarks).


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

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