More work on tilemaps.