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

**URL:** <https://community.palantir.com/t/is-there-a-reference-variable-for-the-active-object-selected-on-a-map/486>\
**Category:** Ask the Community\
**Tags:** map\
**Created:** [June 21, 2024, 12:36pm UTC](https://community.palantir.com/t/is-there-a-reference-variable-for-the-active-object-selected-on-a-map/486 "2024-06-21T12:36:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hpeng](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hpeng](https://community.palantir.com/u/hpeng)\
**Post date:** [June 21, 2024, 12:36pm UTC](https://community.palantir.com/t/is-there-a-reference-variable-for-the-active-object-selected-on-a-map/486/1 "2024-06-21T12:36:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TJS](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@TJS](https://community.palantir.com/u/TJS)\
**Post date:** [June 21, 2024, 3:52pm UTC](https://community.palantir.com/t/is-there-a-reference-variable-for-the-active-object-selected-on-a-map/486/2 "2024-06-21T15:52:35Z")

</div>

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.

 ![Screenshot 2024-06-21 at 08.29.24 AM@2x](https://canada1.discourse-cdn.com/palantir/original/1X/7f7280cffe4d14d1593d9669ec266fafecf655d0.png)

## Documentation for this configuration can be found [here](https://www.palantir.com/docs/foundry/map/widget/#configure-the-widget).

### 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](https://canada1.discourse-cdn.com/palantir/original/1X/cfa9a350ba461314a3abbdff829c793bc3d3a205.png)

 ![Screenshot 2024-06-21 at 08.40.03 AM@2x](https://canada1.discourse-cdn.com/palantir/original/1X/e882dc20252de57d4f34f55f3a6ca76136f1c167.png)

 ![Screenshot 2024-06-21 at 08.46.09 AM@2x](https://canada1.discourse-cdn.com/palantir/original/1X/5334be2ccf9d0dbf3cbf3225a3dc5f73a6ed24db.png)

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.

 ![Screenshot 2024-06-21 at 08.46.38 AM@2x](https://canada1.discourse-cdn.com/palantir/original/1X/746ee9413ba781b16cdb91a804494c8d7d6b059e.png)

Documentation for this configuration can be found [here](https://www.palantir.com/docs/foundry/workshop/widgets-map/#configure-selection-visibility-and-events);

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [December 11, 2024, 2:12pm UTC](https://community.palantir.com/t/is-there-a-reference-variable-for-the-active-object-selected-on-a-map/486/3 "2024-12-11T14:12:05Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [May 28, 2025, 7:01pm UTC](https://community.palantir.com/t/is-there-a-reference-variable-for-the-active-object-selected-on-a-map/486/4 "2025-05-28T19:01:09Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [April 21, 2026, 7:44am UTC](https://community.palantir.com/t/is-there-a-reference-variable-for-the-active-object-selected-on-a-map/486/5 "2026-04-21T07:44:41Z")

</div>


