protomaps / basemaps

Basemap PMTiles generation and cartographic styles for OpenStreetMap data and more
https://maps.protomaps.com/
Other
347 stars 44 forks source link

How to use mapbox styles? #84

Closed tangzijun closed 1 year ago

tangzijun commented 1 year ago

In addition to using several themes in basempa, how can I customize my own theme? For example, when I use existing mapbox styles or openmaptiles styles, the display of pmtiles is abnormal. How can I modify the style of mapbox、openmaptiles, or is there a conversion tool?

image
tordans commented 1 year ago

This will not work out of the box and even if it does, you would have to check licenses if you are allowed to use the styles in this way.

The way the vector tiles data and vector style interact is:

TL/DR: You cannot just use other styles.

bdon commented 1 year ago

@tordans is correct - the software in this repository is designed to only produce and consume the protomaps tile definitions. These are under development but generally documented here:

https://protomaps.com/docs/frontends/basemap-layers https://tilezen.readthedocs.io/en/latest/layers/

If you are using different tileset data tools, you can still use PMTiles, use the go-pmtiles tool to convert.