SpatialServer/Leaflet.MapboxVectorTile

style sheet

Alphatiger opened this issue · 1 comments

Like mapbox is there any ready to use style sheet for leaflet

There is a config object to construct MVTSource that includes a style function that styles your geometries. The styling is less complex than Mapbox, and you can follow what is in the documentation to get started:

https://github.com/SpatialServer/Leaflet.MapboxVectorTile/blob/master/docs/configuration.md

There is no style.json like you find in MapboxGL, but you essentially set the styling of the stroke and fill of shapes being drawn to canvas in this style function.

This example shows some interesting styling of points:

style: function(feature) {

This example shows basic styling:

style: function (feature) {