# \[Solved\] Differentiate between different markers

**URL:** <https://community.thunkable.com/t/solved-differentiate-between-different-markers/2178055>\
**Category:** Questions about Thunkable X\
**Created:** [December 13, 2022, 4:31pm UTC](https://community.thunkable.com/t/solved-differentiate-between-different-markers/2178055 "2022-12-13T16:31:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedritofernandezgome](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pedritofernandezgome](https://community.thunkable.com/u/pedritofernandezgome)\
**Post date:** [December 13, 2022, 4:31pm UTC](https://community.thunkable.com/t/solved-differentiate-between-different-markers/2178055/1 "2022-12-13T16:31:42Z")

</div>

Is there a way to differentiate between different markers? I am setting up a google maps map with various markers, and I would like different things to happen depending on which marker I press, but I only see the instruction “onMarkerPress” which doesn’t help me as all the markers work as one.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 14, 2022, 12:43am UTC](https://community.thunkable.com/t/solved-differentiate-between-different-markers/2178055/2 "2022-12-14T00:43:26Z")

</div>

The onMarkerPress event is unique to each marker.

Please post a screenshot of the blocks you’ve used.

---

<div class="post-metadata">

**Author:** ![pedritofernandezgome](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pedritofernandezgome](https://community.thunkable.com/u/pedritofernandezgome)\
**Post date:** [December 14, 2022, 9:14am UTC](https://community.thunkable.com/t/solved-differentiate-between-different-markers/2178055/3 "2022-12-14T09:14:58Z")

</div>

![Screenshot 2022-12-14 at 10.12.24](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/d/2dfef1689d879e00e6826f9a057fdf04524dfce3.png)  
Both the markers that are set up when map opens, react the same way, navigating to the Welcome screen, and I would like for them to each open a different screen.  
I am planning on adding like 4 or 5 more markers and each one to react differently upon being pressed.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 14, 2022, 1:22pm UTC](https://community.thunkable.com/t/solved-differentiate-between-different-markers/2178055/4 "2022-12-14T13:22:10Z")

</div>

You can add an if statement, to have different reactions based on which marker was pressed

 ![Στιγμιότυπο οθόνης (1423)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/2/e2638f0c0a346f7c3f5051ddc6e349f2abb41998.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 15, 2022, 3:01pm UTC](https://community.thunkable.com/t/solved-differentiate-between-different-markers/2178055/6 "2022-12-15T15:01:46Z")

</div>


