d3-tile icon indicating copy to clipboard operation
d3-tile copied to clipboard

Support maxNativeZoom

Open KeeTraxx opened this issue 5 years ago • 1 comments

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.

KeeTraxx avatar Sep 15 '19 20:09 KeeTraxx

I also think maxNativeZoom isn't a really good name for this feature, but I couldn't think of a better name yet.

KeeTraxx avatar Sep 15 '19 20:09 KeeTraxx