Map template in Workshop - how to get the object in the current viewport?

I have a bunch of object on a map, in a Map template, that I embed in Workshop.

I want to get the list of the object currently “on screen”, so in the viewport of the map, when the user zoom-in etc.

How can I get the object in the current viewport of the user ?