You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Pages: 1
#1 2012-08-21 01:11:55
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
osmc:symbol and shield
Hi,
I would like to have some information how route is marked and osmc:symbol seems to be good for this.
I red this thread here http://forum.openstreetmap.org/viewtopic.php?id=11309 so it looks like it is not easy to be displayed.
This is a format of osmc:symbol ... osmc:symbol=waycolor :background :foreground :foreground2 :text:textcolor
e.g. osmc:symbol=red:white:red_bar:FW:gray
What interests me is "waycolor" in this case "red".
Then I can probably do something like this ... {name '${red|highway-symbol:hbox} ... Should this works?
How to set condition for first color in osmc:symbol?
regards
mira
Last edited by miramikes (2012-08-21 01:14:39)
Offline
#2 2012-08-22 01:39:44
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: osmc:symbol and shield
How to set condition for first color in osmc:symbol?
Hi,
I am trying to have this in my relation file:
type=route & ( route=hiking | route=foot ) & network=iwn & osmc:symbol='[red:]*'
{
apply {
set iwn_from_relation=yes;
set waycolor='red';
}
}
And this in my line file:
iwn_from_relation=yes {name '${waycolor|highway-symbol:oval}'} [0x0b resolution 18 continue]
But it is not working
... any better idea?
regards
mira
Offline
#3 2012-08-22 08:58:46
- kukuk
- Member
- Registered: 2011-09-13
- Posts: 225
- Website
Re: osmc:symbol and shield
I use:
osmc:symbol ~ 'red:.*' in my relation file, and that works fine.
Thorsten
Offline
#4 2012-08-22 18:43:00
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: osmc:symbol and shield
osmc:symbol ~ 'red:.*' in my relation file, and that works fine.
Many thanks ... this works perfectly.
Now I am doing this in relation file:
type=route & ( route=hiking | route=foot ) & network=iwn & osmc:symbol='[red:]*'
{
apply {
set iwn_from_relation=yes;
set waycolor='red/${ref}' | '${ref}' | 'red';
}
}
And this in lines file:
iwn_from_relation=yes {name '${waycolor|highway-symbol:oval}'} [0x0b resolution 18 continue]
So if there are both (color and ref number) I should see them in shield. But I do not . I can see them in qlandkaregt, but not in Garmin unit.
Do I hitting some limit for number of characters in oval shield?
I also tried this to rise up number of characters
{name '${color-ref|highway-symbol:oval:13:11}'}
It is also not works even I know that string is not longer than 7 characters. (red/E10)
regards
mira
Offline
#5 2012-09-01 20:09:00
- wilpin
- Member
- Registered: 2009-11-22
- Posts: 79
- Website
Re: osmc:symbol and shield
Good point!
Any combination of refs including the / symbol can only have a max length of 9 characters.Beyond that the shield disappears.
This is not documented but appears to be the case.
It is less problematic for bus routes ; hiking/cycling routes,however, due to the lengths of their refs are affected more strikingly.
Offline
#6 2012-09-02 21:56:07
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: osmc:symbol and shield
Any combination of refs including the / symbol can only have a max length of 9 characters.Beyond that the shield disappears.
This is not documented but appears to be the case.
Thank you for bringing a little bit of light on this ![]()
What mean these numbers 13:11 here ? I was actually just experimenting with them without knowing real meaning.
I just knew they should set maximum possible number of numbers and characters in shield.
{name '${color-ref|highway-symbol:oval:13:11}'}
regards
mira
Last edited by miramikes (2012-09-02 21:57:29)
Offline
Pages: 1