Add multiple dynamic markers in a map?

Hello coders !
I’ve an issue on my website :
The idea is : you search for people in a database, results appear in a repeater and a map show positions of all items in repeater. I can get the coordinates via

  	let getCurrentItemLat; 
getCurrentItemLat = $w("#dynamicDataset").getCurrentItem().latitude; 
console.log(getCurrentItemLat); 

	let getCurrentItemLng; 
getCurrentItemLng = $w("#dynamicDataset").getCurrentItem().longitude; 
console.log(getCurrentItemLng); 

and what I want is to create markers on a map based on getCurrentItemLng and getCurrentItemLat.
I’ve already tried to use Google Maps API with an html element, but I can’t include current item lat and lng.
It works with one marker (using the google maps element in the Add>Contact>Map) but cause we can’t add more than one marker in a map I’m stuck

Please help,
William

Hi William,

If I’m getting what you are trying to achieve, it sounds like a capability for multiple markers on Google Maps API and not necessarily related to Wix Code , have you tried contacting Google Maps support for help?

Thanks
Adi

Thanks for reply Adi !
I’m not sure Google will answer something related to Wix honestly. I will try anyway but do you know if there is something similar that I can deal with (like Leaflet but I can’t figure out how it works)?
Thanks in advance,
William