# Execute event in map marker when clicking

**URL:** <https://forum.inductiveautomation.com/t/execute-event-in-map-marker-when-clicking/111616>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 21, 2025, 11:55am UTC](https://forum.inductiveautomation.com/t/execute-event-in-map-marker-when-clicking/111616 "2025-10-21T11:55:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_badawi1](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Ahmed\_badawi1](https://forum.inductiveautomation.com/u/Ahmed_badawi1)\
**Post date:** [October 21, 2025, 11:55am UTC](https://forum.inductiveautomation.com/t/execute-event-in-map-marker-when-clicking/111616/1 "2025-10-21T11:55:55Z")

</div>

Hi, i have a map in my view and i added some markers to it, i should also add some information next to the map in the same view where it’s changed when clicking different markers like in snip

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/e/bef6ce14843174b081ea1d82f79b4231c486cd38.jpeg)

is there a way to add ‘on-click‘ event to these markers?

thanks

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [October 21, 2025, 12:16pm UTC](https://forum.inductiveautomation.com/t/execute-event-in-map-marker-when-clicking/111616/2 "2025-10-21T12:16:08Z")

</div>

Well, yeah, it clearly has a `onMarkerClick` event. If you are asking about individual marker properties when clicking, then look at the event data passed in `runAction(self, event)`.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/4/247796316d92f945f40a370d035fcb7da7a24b15.png)

---

<div class="post-metadata">

**Author:** ![Ahmed\_badawi1](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Ahmed\_badawi1](https://forum.inductiveautomation.com/u/Ahmed_badawi1)\
**Post date:** [October 21, 2025, 4:09pm UTC](https://forum.inductiveautomation.com/t/execute-event-in-map-marker-when-clicking/111616/3 "2025-10-21T16:09:09Z")

</div>

Great, but from where is this window opened? I mean in your snip

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [October 21, 2025, 4:31pm UTC](https://forum.inductiveautomation.com/t/execute-event-in-map-marker-when-clicking/111616/4 "2025-10-21T16:31:42Z")

</div>

do you mean the autocomplete popup? `ctrl+space`

You can also check the user manual on these things. [Perspective - Map Scripting | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-map/perspective-map-scripting#onmarkerclick)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 21, 2025, 4:41pm UTC](https://forum.inductiveautomation.com/t/execute-event-in-map-marker-when-clicking/111616/5 "2025-10-21T16:41:14Z")

</div>

> [@Ahmed\_badawi1](#):
>
> ... from where is this window opened?

Right-click on the map component. Configure Events...
