Closed veltman closed 9 years ago
When min and max are equal, the cover is simply a collection of tiles at one zoom level. Setting a lower min_zoom than max_zoom will make the algorithm merge tiles when possible, up to the min_zoom. Here is an example of this in practice:
The idea here is to deliver the absolute minimum number of indexes needed to cover an entire shape. If you are looking for multiple unmerged zoom levels that stack on top of one another, you could do something like:
cover.tiles(geom,{min_zoom: 14, max_zoom: 14}).concat(
cover.tiles(geom,{min_zoom: 15, max_zoom: 15}))
Got it, thanks for the clarification!
I'm a little unclear on how a case with multiple zoom levels is supposed to work.
I would expect that when
min_zoom
is less thanmax_zoom
, the array I get back would be the combination of the array for each zoom level in the range. So in the above example, I would assume that the third statement would produce 476 tiles (108 + 368). Is that not what's supposed to happen?