// http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
int left = (int)Math.floor( (minx + 180) / 360 * (1<<level) );
int right = (int)Math.floor( (maxx + 180) / 360 * (1<<level) );
int top = (int)Math.floor(miny / 360 * (1<<level));// (int)Math.floor( (1 - Math.log(Math.tan(Math.toRadians(miny)) + 1 / Math.cos(Math.toRadians(miny))) / Math.PI) / 2 * (1<<level) );
int bottom = (int)Math.floor(maxy / 360 * (1<<level));// (int)Math.floor( (1 - Math.log(Math.tan(Math.toRadians(maxy)) + 1 / Math.cos(Math.toRadians(maxy))) / Math.PI) / 2 * (1<<level) );
// http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
int left = (int)Math.floor( (minx + 180) / 360 * (1<<level) );
int right = (int)Math.floor( (maxx + 180) / 360 * (1<<level) );
int top = (int)Math.floor(miny / 360 * (1<<level));// (int)Math.floor( (1 - Math.log(Math.tan(Math.toRadians(miny)) + 1 / Math.cos(Math.toRadians(miny))) / Math.PI) / 2 * (1<<level) );
int bottom = (int)Math.floor(maxy / 360 * (1<<level));// (int)Math.floor( (1 - Math.log(Math.tan(Math.toRadians(maxy)) + 1 / Math.cos(Math.toRadians(maxy))) / Math.PI) / 2 * (1<<level) );