[Tilesathome] Osmarender colours and stylesheets
Matthias Julius
lists at julius-net.net
Wed Jul 30 15:09:53 BST 2008
"Philip Shipley" <phil at barby.net> writes:
> If this clean-up exercise was carried out first I think you would find
> it a lot easier and quicker to try different colour schemes to reduce
> the file sizes, and in addition those who want to run their own
> servers and create local schemes would be eternally grateful.
>
> Thoughts?
Would it make sense to have a common style sheet for all zoom levels?
This would make maintaining a consistent rendering styles across zoom
levels a lot easier, IMHO. If syles need to be different at different
zoom levels they could have different names (classes).
Example:
style.css:
.highway-motorway-casing { stroke: #222222; }
.highway-motorway-casing-z12 { stroke-width: 22px; }
.highway-motorway-casing-z13 { stroke-width: 16px; }
.highway-motorway-casing-z14 { stroke-width: 5.1px; }
.highway-motorway-casing-z15 { stroke-width: 5.1px; }
.highway-motorway-casing-z16 { stroke-width: 3.8px; }
.highway-motorway-casing-z17 { stroke-width: 1.9px; }
osm-map-features-z12.xml:
<rule e="way" k="highway" v="motorway">
<area class="highway-casing highway-motorway-casing highway-motorway-casing-z12"/>
</rule>
osm-map-features-z13.xml:
<rule e="way" k="highway" v="motorway">
<area class="highway-casing highway-motorway-casing highway-motorway-casing-z13"/>
</rule>
osm-map-features-z14.xml:
<rule e="way" k="highway" v="motorway">
<area class="highway-casing highway-motorway-casing highway-motorway-casing-z14"/>
</rule>
...
Matthias
More information about the Tilesathome
mailing list