Closed jleppert closed 6 years ago
It will only return a parent tile if all 4 of its children cover the geometry, which is how it's intended to work. Is that the case in your example? It looks like it isn't.
Ah okay, that makes sense. In my case I needed to get the minimum tiles for each zoom level.
I started to debug this, and the problem is in https://github.com/mapbox/tile-cover/blob/master/index.js#L120. That condition never seems to pass so parent tiles are never traversed.