Duplicate layer from (Tiled) Tilemap

Hi,

I’m build a Tilemap from Tiled for use in my Phaser game.

Is possible (and/or a good practice) duplicate a layer and separate items by type dinamically on Phaser?

My target is simplify creation of tilemaps layers (for example, Trees) on Tiled where this items should have a layer over player (altitude emulation). Classic example: Tree (4 tiles square), 2 bottom for base (collision) and 2 top for altitude (over player, no collision).

All trees tiles in same layer, and with Phaser splits on different layers based on tile-index or custom prop. My concern is about performance.

Opinions?

I guess you could do that. You can make the collision layers invisible.