Currently, tilemaps are rendered by tileset. So the first tileset will be rendered, then the next, etc. This is bad as it doesn't allow for control of the z-layer in tiled.