Is there a reference variable for the active object selected on a map?

I have a number of objects showing up on a map, and I want to achieve the following: upon clicking on an object on the map, I want the object view of the selected object to show up in a different section that I have already configured.

Hi @hpeng!

Yes, though the answer differs slightly depending on which of the Workshop Map widgets you are using:


Map Application Template widget

Using the Map Application Template widget configuration, under the Interaction section, you will find the “Selected Objects” variable.

Documentation for this configuration can be found here.

Map widget

The Map widget does not publish a selected object variable, it does however publish a filter, which can be used to construct one.

Under your objects data layer configuration, you will find the “Object Set Selection Filter”. You can create a new variable here, which will then be populated with a filter, which when applied to an object set will filter it down to the selected objects

Screenshot 2024-06-21 at 08.39.56 AM@2x

Screenshot 2024-06-21 at 08.46.09 AM@2x

Above, I’ve created a new variable for this filter. Now, I can create a new object set, starting from all the objects of this type, and apply the previous filter, to filter this set down to just the selected object.

Documentation for this configuration can be found here;