Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
593 stars 192 forks source link

How can I use style.json with L.VectorGrid.Protobuf ? #196

Closed SuperPat45 closed 5 years ago

SuperPat45 commented 5 years ago

I'm surprised it seem not possible to init a L.VectorGrid.Protobuf tile layer with a style.json file provided by TileServerGL/maptiller.com like in this demo: https://www.maptiler.com/maps/#streets//vector/3/-74/40.73 style.json: https://api.maptiler.com/maps/streets/style.json?key=R8rAisQ0L6EL1wW8JVYQ

Can I use style.json file description to load a map with L.VectorGrid.Protobuf ?

IvanSanchez commented 5 years ago

Can I use style.json file description to load a map with L.VectorGrid.Protobuf ?

No.

There was some work done in the mapbox branch, but it was never finished. Finishing up that work would be awesome.