Refactored TileLayer management