How to remove Google Map marker when add new marker

Hello. I tried to remove marker when firebase data changed form this block but when data changed. It add new marker form new data (latitude,longitude) but old mark is not remove. Then I change form remove marker when data changed to when button click for find way to finish. But it be on this video.

This is block.

Thanks you.

Use this block

1 Like

Yes. I tried to use this block but result be my video. A marker just blink but not remove when button click.

In block when Clock1.Timer add set Clock1.Timer Enabled to false and see if it works for you

1 Like

It so work. Thank you so much.

1 Like

If problem solved mark solution in order to help others with similar problem :slight_smile:

OK I marked this topic and old my topic. :grinning_face_with_smiling_eyes:

Excuse me. I have problem again. First I add set Clock1.Timer Enabled to false in block when Clock1.Timer as you said it work. But now it be problem like in video agian. :sweat:

This too. It not work.


what is the timer interval you set? it needs minimum two or three seconds?

I set clock1 this.

Set it like this


1 Like

Now I can solved problem.


I’m clear value in list.

Thank you. :grinning_face_with_smiling_eyes:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.