I have my osm server with mapnik, it works fine but now I want to change the background color( black to white), how can I do that? Is it a server or client configuration?

enter image description here

1 Answer 1


If you use the old Mapnik XML styles, the background colour is defined at the beginning of the XML file:

<Map background-color="#b5d0d0" srs="&srs900913;" minimum-version="2.0.0">

You may as well look into the layer-shapefiles.xml.inc file and look for the coast-poly style:

<PolygonSymbolizer fill="#ffffff"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.