# Perspective map markers configuration

**URL:** <https://forum.inductiveautomation.com/t/perspective-map-markers-configuration/42351>\
**Category:** Ignition\
**Created:** [January 18, 2021, 10:53am UTC](https://forum.inductiveautomation.com/t/perspective-map-markers-configuration/42351 "2021-01-18T10:53:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zarkokv](https://avatars.discourse-cdn.com/v4/letter/z/73ab20/32.png) [@zarkokv](https://forum.inductiveautomation.com/u/zarkokv)\
**Post date:** [January 18, 2021, 10:53am UTC](https://forum.inductiveautomation.com/t/perspective-map-markers-configuration/42351/1 "2021-01-18T10:53:42Z")

</div>

Hello everyone,  
I have created and config map with markers on locations. I need that when I click on marker to open page specified for that location. But, now all markers on the map, when clicked, are opening same page.  
My markers have unique names. I configure marker event using right click on the map, configure events, OnMarkerClick, Actions (Navigation).  
Can anyone please help me?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 19, 2021, 4:48pm UTC](https://forum.inductiveautomation.com/t/perspective-map-markers-configuration/42351/2 "2021-01-19T16:48:56Z")

</div>

Are you performing any logic based off of the name of the marker? I don’t believe configuring a Navigation ACTION is the solution for this because it sounds like you need to dynamically navigate based on the name of the marker. You should configure a Script Action instead, and use the marker’s name to configure some logic:  
Something like

```auto
if event.name == 'MarkerOne':
    system.perspective.navigate(page='/some/path/to/page')
elif event.name = 'MarkerTwo':
    # some other navigation

```

The smart thing to do would be to simply name the markers as the url they should navigate to:

```auto
system.perspective.navigate(page=event.name)

```

and you would set the markers up like this:  
 ![Screen Shot 2021-01-19 at 8.46.51AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/5/d54f1f8c179a9f503175a6db77e39e33008dd6f1.png)

---

<div class="post-metadata">

**Author:** ![zarkokv](https://avatars.discourse-cdn.com/v4/letter/z/73ab20/32.png) [@zarkokv](https://forum.inductiveautomation.com/u/zarkokv)\
**Post date:** [January 20, 2021, 1:12pm UTC](https://forum.inductiveautomation.com/t/perspective-map-markers-configuration/42351/3 "2021-01-20T13:12:48Z")

</div>

Thank you very much cmallonee!  
This is exactly what I need.
