Retaining the style in .osm.pbf file #522
-
When I use the Ruby server.rb after using tilemaker to create an output.mbtiles file, the resulting map no longer contains all the styling in my original map (map.osm.pbf). Things like parking areas, playgrounds, etc have disappeared and the color styling is also gone. Is there a way to create the vector tiles so they retain this data? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Neither vector tiles (as produced by tilemaker) or .osm.pbf files contain any styling information, such as colours or line widths. Styling information is always provided by a separate stylesheet. tilemaker ships with a basic example stylesheet just for demo purposes, but creating a stylesheet that matches your own requirements isn't something in tilemaker's scope. You might find the quick overview at https://github.com/systemed/tilemaker/blob/master/docs/VECTOR_TILES.md helpful in understanding how it works. |
Beta Was this translation helpful? Give feedback.
The documentation for tilemaker is just documentation for tilemaker, if you see what I mean. :)
tilemaker just generates vector tiles - it doesn't render them. You will usually render them with MapLibre GL or another vector tile rendering library. You need to look at the documentation for that to find out about the stylesheet language. Here's the documentation you probably want: https://maplibre.org/maplibre-style-spec/