# Add marker causing live testing app to crash

**URL:** <https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877>\
**Category:** Questions about Thunkable X\
**Created:** [June 21, 2019, 5:27pm UTC](https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877 "2019-06-21T17:27:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 21, 2019, 5:27pm UTC](https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877/1 "2019-06-21T17:27:28Z")

</div>

I am making an app that tracks the international space station. I have a timer set to fire every half a second. This app pulls the data from a web api and i have the map set to follow these coordinates. That part works fine. But as soon as i try to add a marker, the app simply crashes. i tried doing it that it adds a marker when the screen opens, in case the timer caused a backlog, but no luck. It still crashes. Anybody know whats up?

Here is my code:

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

All help is much appreciated.

Thanks

---

<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 21, 2019, 5:36pm UTC](https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877/2 "2019-06-21T17:36:26Z")

</div>

Disable the addMarker block. Is the application crashing or working well? If it works, then connect the blocks of latitude and longitude to the addMarker block through the mathematical block of summation with 0. Does it work?

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 21, 2019, 5:39pm UTC](https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877/3 "2019-06-21T17:39:35Z")

</div>

The application crashes only when i add inn the add marker block. Otherwise it works a dream and the map tracks the position. I just want to add a marker for a more precise view of where the iss is.

Can you explain what you mean? Do you mean latitude + 0 and longitude + 0?

---

<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 21, 2019, 5:40pm UTC](https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877/4 "2019-06-21T17:40:51Z")

</div>

Yes, thanks to this, the string will be converted to a numeric type.

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 21, 2019, 5:49pm UTC](https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877/5 "2019-06-21T17:49:30Z")

</div>

That works great.

Thanks for that.

Now though the marker blinks, is there any other way of not having this? It would be great to have a floating action button that i could plop in the middle of the screen 😛

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 21, 2019, 5:52pm UTC](https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877/6 "2019-06-21T17:52:06Z")

</div>

Maybe i could use a polyline? and have the line invisible?

How could i create coordinates from the lat and lon. I am unsure of the way to join them.

Thanks

---

<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 21, 2019, 5:53pm UTC](https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877/7 "2019-06-21T17:53:38Z")

</div>

I think that you cannot get rid of the blinking, because when you add a marker, the component is redrawn. The floating button is easy to make. Give it absolute positioning on the screen.

Using a polyline is a good solution, but it will also flash.

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 21, 2019, 5:55pm UTC](https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877/8 "2019-06-21T17:55:36Z")

</div>

Thank you so much. That works just fantastic. Thank you.

---

<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, 12:13pm UTC](https://community.thunkable.com/t/add-marker-causing-live-testing-app-to-crash/115877/9 "2024-11-08T12:13:22Z")

</div>


