# How to remove marker on google maps once another marker is placed

**URL:** <https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758>\
**Category:** Maps\
**Created:** [August 15, 2022, 7:05am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758 "2022-08-15T07:05:44Z")\
**Posts on this page:** 20\
**Page:** 3

<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:** [October 4, 2022, 6:49am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/41 "2022-10-04T06:49:48Z")

</div>

The lat and long values for the first “call” block should be the same as they are in the second. So remove the zeroes and replace them with the `in list` blocks that you have for the second.

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 4, 2022, 6:51am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/42 "2022-10-04T06:51:57Z")

</div>

Ok cool, thanks, I will try that.

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 4, 2022, 6:58am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/43 "2022-10-04T06:58:23Z")

</div>

Ok, does this look all good?

 ![Screen Shot 2022-10-04 at 4.57.46 pm](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/f/ff9375a98d21cbe1ecca48cfdce9ce268a1943d9.png)

---

<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:** [October 4, 2022, 7:05am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/44 "2022-10-04T07:05:26Z")

</div>

Yes!

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 4, 2022, 7:18am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/45 "2022-10-04T07:18:01Z")

</div>

Cool thanks for your help, I will go test it out.

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 5, 2022, 6:47am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/46 "2022-10-05T06:47:19Z")

</div>

I have tested it, and there are a few things that don’t seem to fully work properly.  
The Green marker did not ever appear.  
The markers appeared at random time intervals even though I kept the timer at 60 seconds.  
The app stopped adding markers after about 15 minutes.  
The Map every few minutes did a random buzzing motion and kept changing the positions and zoom on google maps without me touching it and would not stop, this one I don’t expect you to be able to fix, but the others seem fixable.

Many Thanks Levi

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 5, 2022, 7:04am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/47 "2022-10-05T07:04:20Z")

</div>

I understand there is a lot to unpack I thought it’s just better to explain everything at once as it could be a simple mistake I have made or something like that. 🙂 I really appreciate your help, I could not have gotten to where my app is now without your help. 🙂

---

<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:** [October 5, 2022, 3:26pm UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/48 "2022-10-05T15:26:12Z")

</div>

Can you try this demo and see if it’s any different?

[https://x.thunkable.com/copy/8873fc776516193250c15e79dce17019](https://x.thunkable.com/copy/8873fc776516193250c15e79dce17019)

The demo is the first screen in the project. I had to zoom in really far to see the markers but I do see one green and a bunch of red.

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 5, 2022, 9:03pm UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/49 "2022-10-05T21:03:06Z")

</div>

Ok, I will try that today, Many Thanks Levi

---

<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:** [October 5, 2022, 9:31pm UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/50 "2022-10-05T21:31:10Z")

</div>

You’re welcome. I had some issues with my own demo. In several cases, it colored one older pins green as well as the current/latest position pin. I don’t know if it would help to add a wait block within the “count 1 to …” block but it might. I’d try a small wait like 0.03 seconds first and then increase from there to see if it makes a difference.

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 6, 2022, 7:05am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/51 "2022-10-06T07:05:51Z")

</div>

Do I have to connect it to my own data source to get it to work, because after I click the button it doesn’t place a marker?

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 6, 2022, 7:19am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/52 "2022-10-06T07:19:37Z")

</div>

Also, should I be using Google Sheets or thinkable built-in data storage?

---

<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:** [October 6, 2022, 7:27am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/53 "2022-10-06T07:27:05Z")

</div>

I used a local data source. So I think you can use the one I added to the demo or you could certainly create your own data source.

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 6, 2022, 7:28am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/54 "2022-10-06T07:28:10Z")

</div>

Ok, I will test that out.

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 7, 2022, 8:34am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/55 "2022-10-07T08:34:14Z")

</div>

When I make a local dada source though thinkable after I make it and select it and add it to my project, it does not come up when I am using the blocks to change where I send the data and collect the data, am I doing something wrong or is it a problem with thunkable.

Many Thanks, Levi.

---

<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:** [October 7, 2022, 3:06pm UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/56 "2022-10-07T15:06:52Z")

</div>

This is a bug in Thunkable. When you create or change a data source, you have to drag a _new_ block from the drawer onto the Blocks tab. The _existing_ blocks will not have the correct slots for that new/changed data source.

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 7, 2022, 11:14pm UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/57 "2022-10-07T23:14:51Z")

</div>

Ok, thanks I will try that.

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 7, 2022, 11:18pm UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/58 "2022-10-07T23:18:24Z")

</div>

Even when I drag new blocks in for the “list of values in” block it still does not come up with my new local data source, what should I do?

Thanks Levi

---

<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:** [October 8, 2022, 12:13am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/59 "2022-10-08T00:13:47Z")

</div>

It could be this bug that I reported:

> <https://github.com/thunkable/thunkable-issues/issues/1169>
>
> \### Platform
> Does this affect:
> Drag and Drop UI - web
> 
> \### Steps to Reproduc…e
> 1. In a DnD project, add a new local data source
> 2. Drag a Create Row block onto a screen
> 3. Click to select the data source name
> 
> \### Expected Behavior
> I would expect to see the name of the data source I just created in the drop-down menu of the Create Row block.
> 
> \### Actual Behavior
> The newest data source is missing.
> 
> \### Project Link
> https://x.thunkable.com/projects/6281d4af68e4420011b1ff8c/7880ee56-5923-4ce3-bfe8-6ca384429331/data
> (this is a private project)
> 
> The data source is called "Search results".
> 
> \###Community Link
> If there's an ongoing discussion about this behavior in the Community, please link to it here
> 
> \`\`\`
> STACK TRACE AND/OR SCREENSHOTS
> \`\`\`

You could try going to the My Data Sources tab at [Thunkable](https://x.thunkable.com/projects) and clicking the Sync with Source button for that new Data Source. And then adding a _new_ data source block from the drawer. But if that doesn’t fix it, I would:

1. Add a comment to the GitHub issue I linked to above. The more users who report the problem, the more likely it’s going to get addressed soon.
2. Contact Thunkable Support for help.

---

<div class="post-metadata">

**Author:** ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)\
**Post date:** [October 8, 2022, 9:54am UTC](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758/60 "2022-10-08T09:54:57Z")

</div>

I think it is the bug you reported, In the meantime what should I do? is there any other way?

Many Thanks, Levi

[Previous page](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758.md?page=2)

[Next page](https://community.thunkable.com/t/how-to-remove-marker-on-google-maps-once-another-marker-is-placed/1999758.md?page=4)
