Hacker News new | ask | show | jobs
by unknown_error 1819 days ago
I noticed that Mapbox Studio has a way of creating & exporting styles (kinda like stylesheets but for maps). Do you know if those styles can be imported into a libre renderer like Maplibre, or if a similar tool/ecosystem exists for creating & sharing open-source map styles? Like if I wanted all roads to be rainbow-colored and rivers to be green.

In Mapbox Studio, the features all seem to be semantically tagged (e.g. this is a road of type X, a POI of type Y) and it makes styling a cinch. I know OSM has its own set of tags for features. Are these compatible (not sure if Mapbox Studio is using OSM data underneath)? Is there an established standard for this type of thing?

(ps TY again for answering my other question so thoroughly)

2 comments

https://maputnik.github.io is similar to Mapbox Studio, but isn't going to give you all you mentioned.

All vector tile sources use tags in various ways, so Maputnik (and the resulting styles) do as well. There isn't a standard tagging schema (and all MVT sources tend to differ slightly), but OSM's tagging is often influential on the resulting schema.

That's exactly what I was hoping for. Thank you again!
The exported styles are compatible (if you don't use newer features like terrain & fog) because Maplibre is nearly identical to GL JS v1.13, there were no rendering changes since the fork.