As part of a mapping application, I am implementing a crude sort of tiling. I am looking for an efficient way to know which tiles need to be loaded according to the current map view port.
In order to do that, I thought of taking the point in the center of the map (for example) and loading the tile for that point.
I need an algorithm for mapping any point on the map to a specific tile.