# \[Resolved\] Issues while using addIconMarker and addPolyline Map Blocks - April 2022

**URL:** <https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222>\
**Category:** Issues / Bugs\
**Tags:** bug\
**Created:** [April 27, 2022, 12:16pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222 "2022-04-27T12:16:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidkittens](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aidkittens/32/131395_2.png) [@aidkittens](https://community.thunkable.com/u/aidkittens)\
**Post date:** [April 27, 2022, 12:16pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/1 "2022-04-27T12:16:00Z")

</div>

This is my last post about this app, I swear 🙂

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/0/e08fe6938ae5d49b09307eebe248a735350d83b1.png)  
When I open the map, the app crashes.  
I did the following:  
-checked the variable"alarma" and its properties(they’re all fine, so the problem is not there)  
-checked other things(everyting is functional until I “call Map1’s addIconMarker”  
-set the value of the latitude and longitude to numbers(converted from strings by using mathematical blocks)  
Something still seems to be wrong. Why is that?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 27, 2022, 1:43pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/2 "2022-04-27T13:43:40Z")

</div>

Use direct number that you have in the latitude and longitude

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

---

<div class="post-metadata">

**Author:** ![aidkittens](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aidkittens/32/131395_2.png) [@aidkittens](https://community.thunkable.com/u/aidkittens)\
**Post date:** [April 27, 2022, 3:07pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/3 "2022-04-27T15:07:30Z")

</div>

Thank you, but I have to use the numbers I have stored in the firebase.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 27, 2022, 3:23pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/4 "2022-04-27T15:23:01Z")

</div>

> [@aidkittens](#):
>
> I have to use the numbers I have stored in the firebase.

Can you show an image of your Firebase numbers?  
If it works with direct numbers but not with the stored numbers then you already localized the problem.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [April 27, 2022, 3:23pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/5 "2022-04-27T15:23:28Z")

</div>

Can you explain a little more about why are you using a local variable to get a value from a cloud variable?

---

<div class="post-metadata">

**Author:** ![aidkittens](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aidkittens/32/131395_2.png) [@aidkittens](https://community.thunkable.com/u/aidkittens)\
**Post date:** [April 27, 2022, 6:32pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/6 "2022-04-27T18:32:38Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/6/56c3e4422d7d1fe86ed61f800de350497e3646bd.png)  
Here I displayed the values in the alert, so you can see that they are correct.

[![](https://img.youtube.com/vi/aEEZ40drZJI/maxresdefault.jpg "numbers") ](https://www.youtube.com/watch?v=aEEZ40drZJI)

And the thing is, it doesn’t work with direct numbers either(it still crashes).

[![](https://img.youtube.com/vi/kGzKDoC7Saw/maxresdefault.jpg "map error") ](https://www.youtube.com/watch?v=kGzKDoC7Saw)

---

<div class="post-metadata">

**Author:** ![aidkittens](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aidkittens/32/131395_2.png) [@aidkittens](https://community.thunkable.com/u/aidkittens)\
**Post date:** [April 27, 2022, 6:36pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/7 "2022-04-27T18:36:47Z")

</div>

Sure! Those values that are to be stored are taken from another user.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/4/0414d1a6ad54ba32d5086126b121b9a5aeee2866.png)  
(this is from another screen)  
When one user clicks a button, that variable will create an object with the coordinate fields. Those are going to be used to add a map marker, in another user’s map. Basically, this should be a location tracker.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 27, 2022, 6:54pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/8 "2022-04-27T18:54:51Z")

</div>

First of all, thank you for the videos but they do not show any map in the project and second anything to do with maps need to be run from the mobile not from the computer.

Can you please record another video showing the map in the screen and clicking the option to add the marker?

---

<div class="post-metadata">

**Author:** ![aidkittens](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aidkittens/32/131395_2.png) [@aidkittens](https://community.thunkable.com/u/aidkittens)\
**Post date:** [April 27, 2022, 7:15pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/9 "2022-04-27T19:15:27Z")

</div>

Sure,

> **[/](https://www.youtube.com/shorts/VKH9BgQ1kl8)**

This is with numbers.

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

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 27, 2022, 7:29pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/10 "2022-04-27T19:29:33Z")

</div>

This is what causes the crash  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/2/020ae56e42d5672d8ce3b690a16c4ba5726ee143.png)

Try to remove them and test and it should work OK without crashing.

---

<div class="post-metadata">

**Author:** ![aidkittens](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aidkittens/32/131395_2.png) [@aidkittens](https://community.thunkable.com/u/aidkittens)\
**Post date:** [April 27, 2022, 7:32pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/11 "2022-04-27T19:32:41Z")

</div>

no :(. still crashes.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 27, 2022, 7:35pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/12 "2022-04-27T19:35:52Z")

</div>

Make sure the `cloud variable` for the `description` is not **NULL** or currently just replace it with with direct text.

---

<div class="post-metadata">

**Author:** ![aidkittens](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aidkittens/32/131395_2.png) [@aidkittens](https://community.thunkable.com/u/aidkittens)\
**Post date:** [April 27, 2022, 7:46pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/13 "2022-04-27T19:46:40Z")

</div>

It’s not null. Replaced it anyways, and it still crashes.  
[https://x.thunkable.com/projects/6249a0ec5ce74e0012aeab52/c69dba59-a384-4cfa-8772-749a57bb0308/blocks](https://x.thunkable.com/projects/6249a0ec5ce74e0012aeab52/c69dba59-a384-4cfa-8772-749a57bb0308/blocks)  
If it helps, here is a link to the project.

---

<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:** [April 27, 2022, 7:56pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/14 "2022-04-27T19:56:49Z")

</div>

I know @muneer is helping you with this but I took a look at the project and I’m wondering which screen you’re having problems with?

---

<div class="post-metadata">

**Author:** ![aidkittens](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aidkittens/32/131395_2.png) [@aidkittens](https://community.thunkable.com/u/aidkittens)\
**Post date:** [April 27, 2022, 8:15pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/15 "2022-04-27T20:15:14Z")

</div>

“main screen voluntar”  
the one with the map component.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 27, 2022, 8:21pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/16 "2022-04-27T20:21:37Z")

</div>

Not that easy @tatiang  
To go through his project you need to connect it to Firebase and then create a key with the User ID that you will login with and in that key create another key called `branch` with content `voluntar` to be able to reach the page when you login.

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

After doing so, the next issue is the project does not allow anything with the `Map` component.

I also created a simple project just a map and a button to click to add a `Marker` but it failed.

I wonder if this has to do with the recent changes that @jared, @jared mentioned

---

<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:** [April 27, 2022, 8:44pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/17 "2022-04-27T20:44:38Z")

</div>

😮 I see what you mean. Not sure I have the time for all that right now but hopefully you’ll make some progress.

---

<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 27, 2022, 8:46pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/18 "2022-04-27T20:46:26Z")

</div>

> [@muneer](#):
>
> ed a simple project just a map and a button to click to add a `Marker` but it failed.

Can you guys check this out?  
[https://x.thunkable.com/projectPage/621ce2f3819ba7026ee6e069](https://x.thunkable.com/projectPage/621ce2f3819ba7026ee6e069)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 27, 2022, 9:07pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/19 "2022-04-27T21:07:49Z")

</div>

> [@jared](#):
>
> check this out

It crashes every time.

---

<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 27, 2022, 9:09pm UTC](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222/20 "2022-04-27T21:09:00Z")

</div>

Super strange. I get no errors. Im going to ping some teammates!

[Next page](https://community.thunkable.com/t/resolved-issues-while-using-addiconmarker-and-addpolyline-map-blocks-april-2022/1851222.md?page=2)
