[OSM-dev] on-road cycle routes - osmarender and ncn tags
mike
mike at bristolbeat.co.uk
Fri Jul 6 19:55:04 BST 2007
I'm using osmarender (well - actually tilesAtHome) to build a cycle oriented
map.
So far I have greyed out all the roads to make them less prominent. I would
like to add color: red to any highways with a route=ncn tag
I'm just looking at the addclass statement in osmarender, but I'm a little
unsure - can anyone see if the following makes sense?
<addclass k="route" v="ncn" class="route-ncn">
<rule e="segment|way" k="highway" v="primary">
<line class='highway-core highway-primary-core'
/>
</rule>
<rule e="segment|way" k="highway" v="secondary">
<line class='highway-core
highway-secondary-core' />
</rule>
...
</addclass>
I'm also unsure, if it does add the class, what will take precedence e.g.
highway-primary-core (color: #c0c0c0;) or route-ncn (color: red;) ?
If anyone has a good osmarender rule set for cycling that would help..!
Also, I'm very new to this xsl / svg stuff, so any tips on debugging would
be really, really usefull.
cheers,
mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20070706/4d185cb9/attachment.html>
More information about the dev
mailing list