Count Markers on Map

Hello Community,
I’m trying to count the number of markers created by users on google map
How can I do that
6 markers were stored in the firebase
But with Get Marker Block it shows 22
and Get All Marker IDs it shows 21

Another question
how do you create or define the Marker Id and how do I get it?

εικόνα
εικόνα

Each time you call data from database you should set global variable that gets all coordinates to an empty list and then add values to list and also delete all markets and recreate them

1 Like

Thanks Dora

It was simple but I did not think about it

About creating markers
how do you create or define the Marker Id and how do I get it?

εικόνα

I believe they are automatically created, why do you need to define marker’s id ?

1 Like

I do not need it immediately but on the occasion of the question about the number of markers … Maybe for future use

1 Like

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