[OSM-dev] Are there a feature rendering rules for Mapnik?

Ed Loach ed at loach.me.uk
Tue Jan 27 11:32:09 GMT 2009


Ivo wrote:

 

minor-roads

          minor-roads-casing                  


5 000

1 000

	☡

			([highway] = 'secondary' or [highway] = 'secondary_link') and not ([tunnel]='yes' or [tunnel]='true')

          CSS:

                      stroke: #a37b48 stroke-dasharray: stroke-linecap: round stroke-linejoin: round stroke-width: 17;

                      



          minor-roads-fill                                   


5 000

1 000

	☡

			([highway] = 'secondary' or [highway] = 'secondary_link') and not ([tunnel]='yes' or [tunnel]='true')

          CSS:



                      stroke: #fdbf6f stroke-dasharray: stroke-linecap: round stroke-linejoin: round stroke-width: 14

 

Where is the difference between "fill" and the "casing"? The conditions are the same, aren't they?

 

The conditions are the same, but if you look at the Mapnik layer carefully at maximum zoom you will see that secondary roads have very thin lines (the casing) along the sides of the main part (the fill).

 

Ed (and forgive this horribly formatted reply – can’t work out how to stop Outlook sticking blue lines next to my reply when I want to  reply below the original text)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090127/41dc822b/attachment.html>


More information about the dev mailing list