osmTile2TmsTile static method
Converts Osm slippy map tile coordinates to TMS Tile coordinates.
@param tx the x tile number. @param ty the y tile number. @param zoom the current zoom level. @return the converted values.
Implementation
static List<int> osmTile2TmsTile(int tx, int ty, int zoom) {
return [tx, ((pow(2, zoom) - 1) - ty).toInt()];
}