NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I'm new to OSM/Open Layers. I'd like to render a map with modified text (font family, font size) specifically for streets only. I'm a developer and happy to dive into code, I'm just not sure where to start looking.

I've searched around on the site, and maybe I'm using the wrong terms, but haven't found anything yet. Any help appreciated!

asked 05 Jan '17, 19:09

Brian%20Vogelgesang's gravatar image

Brian Vogelg...
16224
accept rate: 0%


OpenStreetMap is really a geographical database rather than a specific rendering of the data, but the default layer on openstreetmap.org uses the openstreetmap-carto style, which is created using Mapnik. I presume this is what you would like to emulate but with a different font for streets. You might start by cloning the GitHub repository. Installation instructions are provided in the file INSTALL.md.

If you'd like to create tiles and serve them using OpenLayers, you may wish to have a look at switch2osm.

There are also alternative rendering styles you may wish to try instead of openstreetmap-carto.

permanent link

answered 05 Jan '17, 20:27

Greg's gravatar image

Greg
141238
accept rate: 50%

As Greg has already said, I'd start with the switch2osm site, but actually the "manually" page rather than the "from packages" one, as going through some parts of the setup manually help you to understand what's connected to what, and how to make changes to it. The "manually" page uses the OSM Bright style which is much easier to understand that OSM's "standard" style.

We don't, unfortunately, have a good tutorial on "editing the map style that you're using to render tiles with already" (though if someone knows of one, please edit this answer to include it).

permanent link
This answer is marked "community wiki".

answered 05 Jan '17, 21:21

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×440
×122

question asked: 05 Jan '17, 19:09

question was seen: 3,707 times

last updated: 05 Jan '17, 21:21

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum