Code works in Preview but not Live


Im trying to update my map every time onClick event is triggered.
In preview, the code works fine.
On the live site the longitude and latitude of the marker updates once and gets stuck.
I made sure my database is read only to public.
Did I miss something?

Have you tried syncing your database?
https://support.wix.com/en/article/syncing-data-between-sandbox-and-live-database-collections

Yea, I have already synced the database.
The map marker refreshes once, and it gets stuck.
I checked with console.log and the map marker location is updated but not displayed.

@jehyyun collection permissions

@jonatandor35 already set to anyone. problem is persisting,
Collection type is set to site content
read is set at anyone, the rest is set to admin