Mapbox CustomCSS 样式转换为 GL 样式:海盗、铅笔

Mapbox CustomCSS styles converted to GL Styles: pirates, pencil

我曾经使用 react-leaflet 构建地图,现在我在一个 react-native 项目中使用 @react-native-mapbox-gl/maps.

有了 react-leaflet,我可以使用一些 raster tile url, such as https://api.mapbox.com/v4/{mapbox_id}/{z}/{x}/{y}.png?access_token={access_token} which allowed me to use some of mapbox_ids such as mapbox.pirates, mapbox.pencil or other quite cool available ones

@react-native-mapbox-gl/mapsa styleURL is needed which looks likesmapbox://styles/mapbox/streets-v11为例。

似乎在样式中使用光栅图块url 不是我们可以做的事情。有人知道使用好的旧式地图的方法吗?或者是否存在具有旧样式的开源地图?我没看到,也许它藏在某个地方?

我可以找到一个用 Mapbox Studio Classic 为海盗风格创建的 Mapbox 风格,但它是用 CartoCSS 和 this is not compatible with the new version of Mapbox Studio 编写的,风格需要完全重写。 有谁知道初学者在 minutes/hours 而不是几天内重写样式的好而简单的方法?或者以前有人做过这项工作,并在某处开源了吗?

谢谢!

参见 https://docs.mapbox.com/mapbox-gl-js/example/map-tiles/ 中的示例,您可以添加具有单个栅格图层的样式 json,并将其指向 Mapbox 的图块 URL 用于铅笔或海盗。

另外,还有 Mapbox GL 设计器样式可能适合 https://www.mapbox.com/gallery/ and https://blog.mapbox.com/designing-the-vintage-style-in-mapbox-studio-9da4aa2a627f