New TileMapLayer node in procedurally generated isometric game level

Godot Version

4.4.1

Question

Since the TileMap node is deprecated, how do I create or manage layers with scripts? My procedurally generated isometric game requires around 30 layers. How can I manage them efficiently? Given that each TileMapLayer node represents a single layer, I don't think it's practical to manually create 30 layers.

30 layers ??
if you’re only talking about picking tiles among several tilesets or custom data, you don’t need multiple TileMap nodes.

Multiple TileMap nodes are required if you want to stack multiple tilemaps graphically.

Could you elaborate on the content of the layers ?