Leaflet / Leaflet.VectorGrid

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

Tiles are hidden on a certain zoom level #102

Closed Wilzi closed 7 years ago

Wilzi commented 7 years ago

Hi, First of all thank you for this great plugin! I have a problem and found nothing related to this. I load geoJSON to vector tiles, everything works great but it only shows the tiles when i zoom out. If I zoom in to level >= 15 the tiles are hidden. I've already tried the maxNativeZoom setting with no luck.

The examples from readme works the same

What should I set? Thanks Adam

perliedman commented 7 years ago

Hi!

It's a bit hard to tell without seeing your configuration, but it sounds like you have maxZoom set to 14 for your layer, which would hide it for zoom levels above 14.

dnseminara commented 7 years ago

@Wilzi, the default maxZoom seems to be set to 14 here

It appears that you can add/use any of the geojson-vt options to L.vectorGrid.slicer

perliedman commented 7 years ago

Thanks, @dnseminara.

Closing this since there's no indication this is a bug in VectorGrid at this point.