Add XYZ layer tiling code for tiles