# \[Solved\] How can I identify which map marker was clicked?

**URL:** <https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [March 9, 2022, 6:53pm UTC](https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376 "2022-03-09T18:53:58Z")\
**Posts on this page:** 8\
**Page:** 2

<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:** [March 12, 2022, 5:32pm UTC](https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376/24 "2022-03-12T17:32:09Z")

</div>

You can also use the text substring function to remove digits without rounding.

---

<div class="post-metadata">

**Author:** ![freekapeldoorn5o5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/freekapeldoorn5o5/32/128329_2.png) [@freekapeldoorn5o5](https://community.thunkable.com/u/freekapeldoorn5o5)\
**Post date:** [March 12, 2022, 6:25pm UTC](https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376/25 "2022-03-12T18:25:00Z")

</div>

So uhm… this kinda fixed it. I really don’t know what is going wrong now because it only matches my latitude, And my longitude should also match! When i make it output ThisLong it matches exactly but when i output found longitude found in row # it just says 0

 ![IMG_0023.PNG](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/1/118743e614893a6a15c669810a5bbef550d5b336.jpeg)  
 ![IMG_0022.PNG](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/0/d063149ef0e722944d619d6d067cf6146b12d102.jpeg)  
 ![Knipsel](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/2/d27d5c6dcac52477836a0a9f891219a0fb31a851.jpeg)  
 ![Knipsel](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/9/c963e5383602134d4201425c1ac2653a00b79593.jpeg)

---

<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:** [March 12, 2022, 7:17pm UTC](https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376/26 "2022-03-12T19:17:06Z")

</div>

What I do in a situation like this is to assign a label’s text to each value — the variable and the data source cell. I join those values with “bookend” characters such as “#” at the start and end so that I can see any misplaced spaces, etc.

For example, maybe your variable value is #-77.0364,38.8951# and your data source value is #-77.0364,38.8951 # (trailing space) or #77.0364,38.8951# (missing minus symbol).

**Post those bookended values** and we can help you figure out why it’s not matching.

Also be aware of variable “types.” You can’t compare a number to a text string. I don’t think that’s the problem here but it’s good to be aware of. To eliminate this, join each value with a blank string (“”) to force them to be strings.

**Helpful tip:** if you assign the values to text inputs instead of labels, you can copy and paste the results.

---

<div class="post-metadata">

**Author:** ![freekapeldoorn5o5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/freekapeldoorn5o5/32/128329_2.png) [@freekapeldoorn5o5](https://community.thunkable.com/u/freekapeldoorn5o5)\
**Post date:** [March 12, 2022, 9:33pm UTC](https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376/27 "2022-03-12T21:33:58Z")

</div>

Hmmm so this really worked which is actually great! and i also found the issue… For some reason thunkable removes zero’s after comma’s!

1. is the output
2. is from my airtable.  
And i think this is what mismatches them… But i think thunkable removes the 0 after the double 8’s because in my airtable it does show them!

 ![InkedIMG_0024_LI](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/6/269031227be3c517a8eb5166c876f1ee3726a072.jpeg)

---

<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:** [March 12, 2022, 10:04pm UTC](https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376/28 "2022-03-12T22:04:00Z")

</div>

That tells me that you’re storing the values as numbers. Because a number such as 78.2200 will be stored as 78.22. So you may need to store it as text which would be “78.2200”

---

<div class="post-metadata">

**Author:** ![freekapeldoorn5o5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/freekapeldoorn5o5/32/128329_2.png) [@freekapeldoorn5o5](https://community.thunkable.com/u/freekapeldoorn5o5)\
**Post date:** [March 12, 2022, 10:09pm UTC](https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376/29 "2022-03-12T22:09:59Z")

</div>

Ahh, so i would need to make them a variabel first? and than insert that variable where it should look for it?

---

<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:** [March 12, 2022, 11:10pm UTC](https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376/30 "2022-03-12T23:10:05Z")

</div>

Variables don’t have anything to do with it because variables can store any type of value.

It’s more about forcing the value you’re storing to be a particular _type_. Can you change the column format in Airtable from a number to single line text?

I just tried this with Airtable and I was able to display the value 51.26778800 in a label and it included the trailing zeroes.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/c/cc3d44a0e6410c2fb44cf12dd1f6f3720a6d837b.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1a47af76a32a4f462612171852722c5e4afc75be.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [June 10, 2022, 11:10pm UTC](https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376/31 "2022-06-10T23:10:32Z")

</div>

Closed on June 10, 2022, 11:10pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://community.thunkable.com/t/solved-how-can-i-identify-which-map-marker-was-clicked/1775376.md?page=1)
