client calculates supertile and subtile