Leaflet / Leaflet.VectorGrid

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

Possible to completely hide a vector tile layer? #60

Closed atodd-geoplan closed 7 years ago

atodd-geoplan commented 7 years ago

Following the L.Path example (or otherwise), is it possible to completely hide a feature later inside the tile layer like 'sreets' below?

         var vectorTileOptions = {
                rendererFactory: L.canvas.tile,
                vectorTileLayerStyles: {
                    'roads_motorways_0_line': {
                        weight: 1,
                        color: 'darkblue'
                    }, 
                    'streets': {
                        display: 'none'
                    }

                }
            };
IvanSanchez commented 7 years ago

Set the L.Path options to an empty array. See the road: [] bit in the example in the README.

PawelGIX commented 3 years ago

How can I enable street names on mapbox layer?