Sort of got dynamic loading and caching of tiles working