This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

After installation of OSM , how can i change the Map style (tile)

0

Hi Guys,

After successfully following next guide and setup of OSM https://switch2osm.org/serving-tiles/manually-building-a-tile-server-18-04-lts/ and loading of a map from Geofabric into Postgre, now i would like to change the Map style to be different that i have locally on the server. As example i have now the below one :

alt text

but eventually if i want to integrate let's say dark style from here https://github.com/openmaptiles/dark-matter-gl-style what are the required steps to do it ? Or can you provide me a link with a guide how can i achive this.

asked 04 Feb '21, 08:41

DavorB0's gravatar image

DavorB0
22445
accept rate: 0%


One Answer:

1

You've built a tile server for serving raster tiles. The style you mentioned is a vector tile style. The technical setup for those two are quite different.

You could setup a tileserver-gl (see https://tileserver.readthedocs.io/en/latest/ ) for serving vector tiles in the dark-matter-gl-style. that you first have to produce (see more here: https://openmaptiles.org/docs/generate/generate-openmaptiles/ ).

Otherwise if you would rather stay in the raster tile world, you would have to rework the openstreetmap-carto style to suit your needs or find a another mapnik/cartocss raster style that fits your needs.

answered 05 Feb '21, 12:38

Spiekerooger's gravatar image

Spiekerooger
3.1k22356
accept rate: 16%

Source code available on GitHub .