Well you dont need the tilemap anymore. You only need the layer-node. You can right-click the layernode and click āMake Rootā and then you can delete the tilemap-node.
Before you delete make sure everything has been converted correctly
If anyone else has the same problem, here is my current solution (similar to the one above):
Extract TilemapLayer in all scenes where the tilemap is used.
Change the type of the tilemap in the tilemap scene to TilemapLayer (Change Type has the advantage of retaining the properties).
In all scenes where the tilemap is used, copy the tiles from the extracted layer to the tilemap scene node (either in the editor with the selector or by copying from the tscn file as suggested by @godotuser6000).
Delete the layer.
For multiple layers, Iām essentially doing the same but converting the tilemap to a Node2D. Then, you can either attach the layers directly in the tilemap scene and expose them via āEditable Childrenā to draw (seems hackish), or make each layer a separate scene and instantiate them in every scene as a child of the main tilemap Node2D.
Itās annoying, but I guess itās better than redrawing all the tiles.
If there is a better solution, please let me know :).
So, the idea is to copy all the tiles that you have drawn from the extracted TileMapLayer to the new TileMapLayer scene. To do this, you select the extracted TileMapLayer node. Then you can select all the drawn tiles by selecting the āSelectā tool (pointer icon) in the TileMap menu in the bottom panel. After selecting them, you copy and paste them to the TileMapLayer scene. After that, you can delete the extracted layers.
Alternatively, instead of using the Editor GUI, you can open the .tscn file where you have drawn the tiles and copy the tile information (I havenāt tried this myself).
Thatās a great answer, which I havenāt tried yet but I did something similar before (copying the tiles from map to map). Now Iāve got the TileMap in a Scene that is inherited by other scenes (not instantiated in them) to be able to reference it from a common script. If itās not working Iām coming back to this post here to figure out any alternatives.