TileMapLayer width and height?

Answered by @tomyy here:

As mentioned there you can use: get_used_rect