| 28 | |
| 29 | Starting from 0, how would this play out if it was scripted? |
| 30 | |
| 31 | 1. The first two web tiles run from 0 to 5.625. Our 7 degree window covers 0 to 6, more than enough to capture both tiles. We will be throwing away the data after 5.625, which is not a problem. |
| 32 | |
| 33 | 2. The next two web tiles run from 5.625 to 11.25. We need to start our 7 degree window at 5 to catch the start of the tile, so it covers 5 to 12 degrees. Again we throw away a bit but fully cover two tiles. |
| 34 | |
| 35 | 3. The next two web tiles run from 11.25 to 16.875. Following the pattern, our 7 degree window runs covers 11 to 18 degrees. |
| 36 | |
| 37 | 4. And so on, starting the each 7 degree window at the rounded-down (westward, really) coordinate of the previously generated tile. |