# \[Solved\] Map Marker Press Error - Crashes App

**URL:** https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691
**Category:** Questions about Thunkable X
**Tags:** googlemaps, map
**Created:** [March 23, 2020, 4:33am UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691 "2020-03-23T04:33:18Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![justingxn9](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@justingxn9](https://community.thunkable.com/u/justingxn9)
#### Post date: [March 23, 2020, 4:33am UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/1 "2020-03-23T04:33:19Z")

</div>

Hey everyone. I’m having some trouble with the google map feature.

Whenever a map marker is clicked, I get an this error:

 ![IMG_9068.PNG](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/f/ef768440559a403ee1673991e1e072668fd021ae.jpeg)

It happens regardless of whether or not there is a “map marker press” block in place. Any ideas or guidance?

---

<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: [March 23, 2020, 4:38am UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/2 "2020-03-23T04:38:35Z")

</div>

does your phone give location permissions to the companion app?

---

<div class="post-metadata">

### Author: ![justingxn9](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@justingxn9](https://community.thunkable.com/u/justingxn9)
#### Post date: [March 23, 2020, 4:40am UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/3 "2020-03-23T04:40:28Z")

</div>

Yeah I’ve enabled permission, and the app pulls the phones location in a few blocks.

---

<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: [March 23, 2020, 4:42am UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/4 "2020-03-23T04:42:05Z")

</div>

Without seeing your blocks it can be hard to diagnose. The map can cause crashing quite easily if the blocks are not in the right place.

Can you share a shot of your blocks?

---

<div class="post-metadata">

### Author: ![justingxn9](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@justingxn9](https://community.thunkable.com/u/justingxn9)
#### Post date: [March 23, 2020, 4:52am UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/5 "2020-03-23T04:52:21Z")

</div>

Yeah it’s definitely from the way I’m creating my markers from Airtable. I tested the map on another page by just making a bunch of markers manually and it works fine there.

Here you go:

 ![Screen Shot 2020-03-22 at 11.36.09 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/2/5255b9d9c02b37a87f3b335bcea301e9f2f6c02e.png)

---

<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: [March 23, 2020, 5:22am UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/6 "2020-03-23T05:22:15Z")

</div>

this is how i filter. you could try this kind of idea. ![Screen Shot 2020-03-23 at 1.07.21 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/c/0c766a36902f8eac566244104c301e321f7fb2bf.png)

works well for me

I stack these on top of each other.

or even this.

a filter within an if then. stacked ontop of another filter

 ![Screen Shot 2020-03-23 at 1.08.23 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/8/882934d16cbd759602c55e83b86f45eb064e0a4f.png)

---

<div class="post-metadata">

### Author: ![justingxn9](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@justingxn9](https://community.thunkable.com/u/justingxn9)
#### Post date: [March 23, 2020, 5:41am UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/7 "2020-03-23T05:41:46Z")

</div>

I don’t know that it’s the way I filter though. I pulled in an unfiltered list from airtable and plotted them on a map and it gave me the same error.

---

<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: [March 23, 2020, 5:18pm UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/8 "2020-03-23T17:18:04Z")

</div>

well, the only way to find out is to do something different. If you don’t change the blocks, you wont make it work any better. You could always try it.

I would put your list for lat and long each into their own list viewer to see if there are only numbers being entered as coordinates.

or maybe for some reason 1 list is longer than the other?

---

<div class="post-metadata">

### Author: ![justingxn9](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@justingxn9](https://community.thunkable.com/u/justingxn9)
#### Post date: [March 23, 2020, 6:42pm UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/9 "2020-03-23T18:42:59Z")

</div>

I’m not sure what fixed it exactly because I tried a few different things, but by changing my blocks around to get all rows, and then for each row, get the individual row based on the row number field in airtable, I was able to make it work. I did discover that by using a title field that was a number, it would also crash so I changed it to a text field and it is working now.

 ![Screen Shot 2020-03-23 at 1.26.16 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/4/d432816b5f86cb12df7084c82d049be0c35ce424.png)

---

<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: [March 23, 2020, 6:52pm UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/10 "2020-03-23T18:52:42Z")

</div>

if this ^^^ was your solution, can you mark it so others may see?

Great work @justingxn9, troubleshooting is a pain in the but it makes you a more efficient programmer if you can learn from your mistakes.

---

<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:39am UTC](https://community.thunkable.com/t/solved-map-marker-press-error-crashes-app/529691/11 "2024-11-08T11:39:42Z")

</div>


