d3-tile
d3-tile copied to clipboard
Support maxNativeZoom
Most accessible tile sources provide tiles until a certain z-coordinate, e.g. z <= 19 for OpenStreetMap. While I could prevent zooming further in using zoom.scaleExtent()
, I sometimes want to be able to zoom further in, while using tiles with less resolution.
Leaflet solves this problem with https://leafletjs.com/reference-1.5.0.html#gridlayer-maxnativezoom
I think it would be nice to solve this in d3-tile as well.
I also think maxNativeZoom
isn't a really good name for this feature, but I couldn't think of a better name yet.