2

I'm running an OSM tile server stack using Mod_tile, renderd, mapnik, osm2pgsql and a postgresql/postgis database on Ubuntu Linux 14.04.

I've chosen OSM Bright for my tiles, but i would like to incorporate some of the style rules found in OSM Carto, just not all of it.

Specifically, i would like to incorporate the style for "Street Numbers", but i'm having trouble identifying which .mss stylesheet in OSM carto that this style can be found and copied.

In the attached images, i highlighted a street number which is rendered using the style rule in OSM Carto that i am trying to identify and copy into OSM Bright.

Which style rule is used to render these street numbers?

Image of OSM Carto tile map with street number styling

1 Answer 1

1

The addresses styles are all defined in addressing.mss.

Those particular ones are housenumbers and the style is

#housenumbers {
  [zoom >= 17] {
    text-name: "[addr:housenumber]";
    text-placement: interior;
    text-min-distance: 1;
    text-wrap-width: 0;
    text-face-name: @book-fonts;
    text-fill: #666;
    text-size: 9;
  }
}

From this you can see that the data comes from the layer "housenumbers" which is defined in project.yaml

OSM Bright defines layers in a different file format, but the layer table definition should be usable.

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.