Looping through visible tile elements

Hello,

Is it possible to loop through the entities of the visible tile in a tileset and log their ids for example?

Thanks

After a little searching i think the event

tileset.tileVisible.addEventListener(function(tile) {...});

can be used but this triggers not stop even when the camera view is static...
I cannot find any example

Hi,

Did you find any solution to this? I want to do the same - get all IDs of visible tiles/features in the visible view - but I also get the infinite loop when doing the same as you did.

Can someone maybe help with this? Is this the correct way of doing this? How could we get rid of the infinite loop, in that case? Thank you!