# Matching data with marker on map

**URL:** <https://community.thunkable.com/t/matching-data-with-marker-on-map/33543>\
**Category:** Questions about Thunkable X\
**Created:** [June 29, 2018, 12:53am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543 "2018-06-29T00:53:59Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clare\_Cornwell](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Clare\_Cornwell](https://community.thunkable.com/u/Clare_Cornwell)\
**Post date:** [June 29, 2018, 12:53am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/1 "2018-06-29T00:53:59Z")

</div>

Hi,  
Just wondering if anyone would know how to do this, I am trying to create a system in which you input data and then the data shows up on a marker on the map?  
There are text boxes which go to a spreadsheet data base, how would i get the information from the database automatically onto a marker on the map?  
In one of the text boxes you put in your address, is there anyway I could get the marker to automatically go to that address and the description of the marker would show the other things people put in the text boxes?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 29, 2018, 5:04am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/2 "2018-06-29T05:04:45Z")

</div>

Hi,

You can see an example of the work by the link.

> [@Google Map - add multiple markers](http://community.thunkable.com/t/google-map-add-multiple-markers/31066/8):
>
> Hi there, [Here’s a link to a share copy](https://x.thunkable.com/copy/f7b53a9d1832f66ab011e049bbc7abeb) for an app that maps trees. This is crashing on Android but works for iOS. The backend data is a simple Airtable spreadsheet Hope this helps! Albert

---

<div class="post-metadata">

**Author:** ![Hundephysiotherapie](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@Hundephysiotherapie](https://community.thunkable.com/u/Hundephysiotherapie)\
**Post date:** [October 17, 2018, 10:09pm UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/3 "2018-10-17T22:09:49Z")

</div>

Fine, that works great. But now the next task: When I click on a marker, the contents of a field from the airtable should appear as text on a label. How is this to build? The way I did works or not. At most comes the message: undefined. What can I do?

 ![Marker](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/3/e3705fd1ea52576bd01d9c1712fafb527ad91b0f.jpeg)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [October 18, 2018, 7:30am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/4 "2018-10-18T07:30:04Z")

</div>

Check what data is returned from AirTable. Perhaps, because of the connection error to the AirTable, you don’t return data at all, which is why it writes undefined.

See what is in the “error” variable.

---

<div class="post-metadata">

**Author:** ![Hundephysiotherapie](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@Hundephysiotherapie](https://community.thunkable.com/u/Hundephysiotherapie)\
**Post date:** [October 19, 2018, 5:17pm UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/5 "2018-10-19T17:17:56Z")

</div>

Thanks for the anwer! But I didnt find some error-messages…

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [October 19, 2018, 6:48pm UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/6 "2018-10-19T18:48:49Z")

</div>

Do you get data from AirTable when using the GetAllRows block? If not, there is an error connecting to the AirTable. The AirTable help has an example of a query in the browser to view all the entries in the table. Check in the browser records from the table are displayed?

---

<div class="post-metadata">

**Author:** ![Hundephysiotherapie](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@Hundephysiotherapie](https://community.thunkable.com/u/Hundephysiotherapie)\
**Post date:** [October 20, 2018, 7:52am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/7 "2018-10-20T07:52:45Z")

</div>

Ich habe jetzt eine neue Tabelle angelegt, mit der klappt es. Im Prinzip. Aber die Zuordnung der Texte erfolgt unberechenbar. Siehe hier! Kannst du sagen, was hier schief läuft? Vielen Dank schon mal!  
[Bitte testen!](https://x.thunkable.com/copy/8d36c30538021b4ce8f01af91edc4bb8)  
[https://x.thunkable.com/copy/8d36c30538021b4ce8f01af91edc4bb8](https://x.thunkable.com/copy/8d36c30538021b4ce8f01af91edc4bb8)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [October 20, 2018, 11:05am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/8 "2018-10-20T11:05:38Z")

</div>

In your project, APIKey is not entered to access AirTable. If you give it to me, I will find a problem.

---

<div class="post-metadata">

**Author:** ![Hundephysiotherapie](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@Hundephysiotherapie](https://community.thunkable.com/u/Hundephysiotherapie)\
**Post date:** [October 20, 2018, 12:21pm UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/9 "2018-10-20T12:21:34Z")

</div>

Oh, sorry… here it is: keyqJaFRuHGPOzdD7  
Danke für deine Bemühungen!

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [October 20, 2018, 1:44pm UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/10 "2018-10-20T13:44:43Z")

</div>

The problem is that you are using the wrong variable for the loop. The variable j is not a number as you think, but an object.

Check it.

[https://x.thunkable.com/projects/5bcb2fdfbb5fe7f2b8a5bd48/SANameLabel30/designer](https://x.thunkable.com/projects/5bcb2fdfbb5fe7f2b8a5bd48/SANameLabel30/designer)

![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/b/3bf76ecc47c28443a103b23b66d31a20d67fbe27.png)

---

<div class="post-metadata">

**Author:** ![Hundephysiotherapie](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@Hundephysiotherapie](https://community.thunkable.com/u/Hundephysiotherapie)\
**Post date:** [October 21, 2018, 6:56am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/11 "2018-10-21T06:56:18Z")

</div>

Vielen Dank, aber es arbeitet leider nicht richtig. Die Labels werden nicht richtig benannt.  
Bei Lösung von Bild 1 werden die Labels zwar benannt, aber nicht mit dem zugeordneten Inhalt der Datentabelle, bei Lösung von Bild 2 gibt es gar keine Ausgabe

 ![Marker2fach](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/0/c05a5c99a7d386fa897f4f98f7ba3813ee25a474.jpeg) ![Marker1fach](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/5/f570089eceb0b4941d8851056e16faaa53a482f8.jpeg) der Wert wird nicht angezeigt ![Marker1fachNr2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aad6501363ab714eebddae4e4b178413f893b3df.jpeg) Hier wird immer der selbe Wert an die Label ausgegeben, egal, welchen Marker man klickt.  
Es ist zum Verzweifeln…  
Ich wünsche einen entspannten Sonntag, und lieben Dank noch einmal!

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [October 21, 2018, 8:57am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/12 "2018-10-21T08:57:44Z")

</div>

This works incorrectly because I just fixed the display of the markers on the map.

Unfortunately, I can’t get this application to work, because the Map.onMarkerPress event handler does not work in Thunkable X.

---

<div class="post-metadata">

**Author:** ![Hundephysiotherapie](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@Hundephysiotherapie](https://community.thunkable.com/u/Hundephysiotherapie)\
**Post date:** [October 21, 2018, 9:37am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/13 "2018-10-21T09:37:00Z")

</div>

ok, schade… aber trotzdem vielen Dank für die Bemühungen!

---

<div class="post-metadata">

**Author:** ![leen204c2](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@leen204c2](https://community.thunkable.com/u/leen204c2)\
**Post date:** [April 24, 2020, 11:28am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/14 "2020-04-24T11:28:45Z")

</div>

Hii I have a question with my app as well. I want the user to press the marker in the map, then go to another page with the same description in airtable. I tried these blocks but it didn’t work:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/e/cec700c5cabcdf9c3a0b8a394f0075da3d2d7b66.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/4/8456bf76fdbe86f3f6b4c3ed4e0b83ded62c6232.png)  
Ignore the “selected rows” part, but it still doesn’t work. Why?!!  
Thanks for your time,  
Nicole 🙂

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 24, 2020, 12:17pm UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/15 "2020-04-24T12:17:42Z")

</div>

Nicole. It looks like in your loop you ask to get object property latitude from object item j from the list of rows.

In airtable caps. Each object is a row. Each property is a cell of the row.

You usually your ask for property latitude of object j

The same for the others. In a loop you check the data line by line. So you always check for  
Property \_\_\_\_\_ of object j

---

<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:** [November 8, 2024, 11:31am UTC](https://community.thunkable.com/t/matching-data-with-marker-on-map/33543/16 "2024-11-08T11:31:50Z")

</div>


