I want to show the coordinate of each tile, in debug mode, in tile.php : /* debugging stuff */ if ($bDebug) { imagestring ( $oTile, 3, 10, 30, "minx:"($real_minx)." miny ".($real_miny)."maxx:"($real_maxx)." maxy ".($real_maxy)", $black ); How can i calculate the real coordinate ? real_minx, real_miny ...