Conversation
Fix out-of-range tiles
|
Hi, Thank you so much for this PR! 👍 Thinking further about it, I do not know how computation intensive are the calls to As you pinpointed it from the beginning, we actually need to call them when the zoom changes, i.e. in the case of this plugin, when it tries requesting tiles from a lower zoom to replace a missing tile. Therefore it seems to me that we would basically need instead to compute them once for each zoom, and possibly cache their result in a dictionary |
|
I missed this issue/pr, the options.tms bug threw me for a loop for a bit, and I came up with my own approach, though it wouldn't surprise me if it's naïve in ways I don't understand. If the tile range is fixed by zoom level, then the calculation is simple: |
Closes #13.