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