我们可以在没有 mapbox GL 的情况下将 leaflet 1 beta 用于矢量图块吗?

can we use leaflet 1 beta for vector tiles without mapbox GL?

我仍在了解有关传单 1 的更多信息。我浏览了更改日志,看到对 vector 做了很多改进。 传单 1 是否有自己的矢量图块方式而不使用 Mapbox GL?

Leaflet 不能开箱即用,但您可以使用 vectortile 插件:

A Leaflet Plugin that renders Mapbox Vector Tiles on HTML5 Canvas. Though there is extensive use of MapboxVectorTiles in Mapnik PNG tile rendering as well as MapboxGL, there is a strange lacking of libraries that integrate these vector tiles directly into Leaflet. Search no more, the library you have been looking for is here!

https://github.com/SpatialServer/Leaflet.MapboxVectorTile