You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
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.***

#1 2011-06-03 02:10:31

Jouke1
Member
Registered: 2011-03-14
Posts: 28

make tracks without acces an other color

I'm trying to make my own garmin map and I want to have a different colour for tracks on which I don't have access to(access=no, motorcycle=no, motor_vehicle=no). I've got this in the stylesheet:

#to include the tags which mkgmap doesn't normaly use for routing
highway=* & ( motor_vehicle | vehicle | motorcycle ) = ( no | agricultural | private) { add motorcar=no}

#if it doesn't have a restriction: make it 0x0a, if it does 0x16
highway=track & (access | motor_vehicle | motorycle) != no [0x0a road_class=0 road_speed=7 resolution 21]
highway=track & (access | motor_vehicle | motorycle) = no [0x16 resolution 24]


As far as I can see, only the tracks with access=no is rendered as I like it to be. Any thoughts on this?

Last edited by Jouke1 (2011-06-03 11:32:26)

Offline

#2 2011-06-03 14:43:41

csdf
Member
From: UK, living in Abu Dhabi
Registered: 2009-08-11
Posts: 313
Website

Re: make tracks without acces an other color

You use an unconventional way of styling the rule.  I would do
highway=track & (access=no | motor_vehicle=no | motorcycle=no) [0x16 resolution 24]
highway=track [0x0a road_class=0 road_speed=7 resolution 21]

Offline

#3 2011-06-04 12:31:47

Jouke1
Member
Registered: 2011-03-14
Posts: 28

Re: make tracks without acces an other color

Thanks, that seems to work smile

Offline

Board footer

Powered by FluxBB