Tiles near the viewport center should be loaded first. This commit fixes a discontinuity in the distance function that is used to sort the queue of requested tiles.
A simple map viewer.