Improve map tile coordinate detection when using tilestretching.