Cached version (why?). Downloaded 8 hours ago from the original wiki page. Pages older than 18 hours will be reloaded in the background.

User:Ika-chan!/British road colours

From OpenStreetMap Wiki
Jump to navigation Jump to search

a pen and a ruler laying across each other

This page is a work in progress and not ready for use! The content is likely incomplete, inaccurate or empty.
Please use Template:WIP

This article will be renamed to "user:ika-chan!/Stylesheet tricks" when I am ready, due to my improving knowledge reducing the number of steps for the British road colours changes to one. This page will then contain tricks for adding alternative station symbols, hill contours and perhaps hillshading.

This article shows you how to adapt the Standard tile layer stylesheet (officially OpenStreetMap Carto) to use road colours (commonly known as the British road colours) that commonly appear on maps in the Republic of Ireland and the United Kingdom.

The tutorial only requires the standard clone of OpenStreetMap Carto because the simple act of changing road colours does not require a complete fork (and ika-chan! is wary of having too many internet accounts).

The tutorial is correct as of 20 January 2018.

Before you start

Heritage (British) road colours

On 1 May 2020, I reworked the heritage road colour scheme using GIMP’s LCh colour model, which the current road colours of the standard tile layer actually came from. The revised hues come from the Department for Transport’s official palette for traffic signs.[1]

Heritage road colours - Standard road shields.svg - Standard road shields
Heritage road colours - British road shields.svg - British road shields
Technical information

Contours and hillshading

High speed railways

Transport symbols

Commit the changes

Once you have made edits to the stylesheet, run the following commands in Terminal to commit the changes and flush the old tiles:

cd /srv/styles/standard && \
carto project.mml > style.xml && \
sudo service renderd restart && \
rm -rf /srv/www/tiles/standard/*

Notes

  1. Jump up to: 1.0 1.1 1.2 “Traffic-sign images”. London: Department for Transport. 1 May 2020. Archived from the original on 8 February 2017. Retrieved 1 May 2020.