# Issue with Uploading Markers from Firebase

**URL:** https://community.thunkable.com/t/issue-with-uploading-markers-from-firebase/602954
**Category:** Questions about Thunkable X
**Tags:** googlemaps, firebase
**Created:** [June 8, 2020, 5:08pm UTC](https://community.thunkable.com/t/issue-with-uploading-markers-from-firebase/602954 "2020-06-08T17:08:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bobsunscreen](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bobsunscreen/32/85667_2.png) [@bobsunscreen](https://community.thunkable.com/u/bobsunscreen)
#### Post date: [June 8, 2020, 5:08pm UTC](https://community.thunkable.com/t/issue-with-uploading-markers-from-firebase/602954/1 "2020-06-08T17:08:10Z")

</div>

In my app, I save marker longitudes, latitudes, titles, and descriptions to Firebase under the “marker” key. Below is my attempt at coding the map marker information taken from Firebase to load onto a map. Currently, my app is only uploading one map marker. How can I adjust my code to load all of the markers?

 ![Screen Shot 2020-06-08 at 1.03.46 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/3/939a236bfefe42d45210d5c513fc713bb26a2810.png)

---

<div class="post-metadata">

### Author: ![gobassky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gobassky/32/77019_2.png) [@gobassky](https://community.thunkable.com/u/gobassky)
#### Post date: [June 9, 2020, 8:57am UTC](https://community.thunkable.com/t/issue-with-uploading-markers-from-firebase/602954/2 "2020-06-09T08:57:11Z")

</div>

I suspect that there is a synchronous issues related to the asynchronous blocks that you used. For example, the first "J’ loop, before the Realtime\_DB1 finished its process and execute the blocks within it, the loop have already gone to the next iteration of “J”. Hence in the end, you would only have one set of marker. You can do this with an recursive loop or another simple way is use the “cloud” type variable. The cloud variable essentially simplified the realtime\_DB call and you may treat it just like any “app” variable.

---

<div class="post-metadata">

### Author: ![bobsunscreen](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bobsunscreen/32/85667_2.png) [@bobsunscreen](https://community.thunkable.com/u/bobsunscreen)
#### Post date: [June 11, 2020, 1:47am UTC](https://community.thunkable.com/t/issue-with-uploading-markers-from-firebase/602954/3 "2020-06-11T01:47:08Z")

</div>

Okay, thank you!

---

<div class="post-metadata">

### Author: ![dami\_flepp](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dami_flepp/32/72796_2.png) [@dami\_flepp](https://community.thunkable.com/u/dami_flepp)
#### Post date: [June 17, 2020, 5:13pm UTC](https://community.thunkable.com/t/issue-with-uploading-markers-from-firebase/602954/4 "2020-06-17T17:13:56Z")

</div>

Hello @bobsunscreen!  
Can you upload an image from your new blocks?

It would help me a lot!

GG

---

<div class="post-metadata">

### Author: ![bobsunscreen](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bobsunscreen/32/85667_2.png) [@bobsunscreen](https://community.thunkable.com/u/bobsunscreen)
#### Post date: [June 19, 2020, 1:23am UTC](https://community.thunkable.com/t/issue-with-uploading-markers-from-firebase/602954/5 "2020-06-19T01:23:54Z")

</div>

Hi @dami_flepp, sure thing! I decided that using a cloud variable instead of Realtime\_DB would be an easier way to store information to Firebase:

 ![Screen Shot 2020-06-10 at 9.52.00 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/1/71d67aec76df81fcb7c7fcc65500f540a4863173.png)

This way, map markers will be much easier to save and load up.

And I uploaded the Firebase data using this code:

 ![Screen Shot 2020-06-18 at 9.45.00 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/99fd3e9a98fd1e1b4920a82398c34edb1952cc71.png)

I hope this helps; please let me know if you have any questions!

---

<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:25am UTC](https://community.thunkable.com/t/issue-with-uploading-markers-from-firebase/602954/6 "2024-11-08T11:25:36Z")

</div>


