Phaser API Documentation

  Version: 
destroy()

Description:

Removes all layer data from this Tilemap and nulls the scene reference. This will destroy any TilemapLayers that have been created.

Since: 3.0.0
Source: src/tilemaps/Tilemap.js (Line 2606)