Hey guys, trying to put a map on my dynamic single item page which changes for every property listed.
This is my code so far but not working. Any help would be greatly appreciated!
$w.onReady( function () {
$w(“#dynamicDataset”).onReady( () => {
let currentItem = $w(“#dynamicDataset”).getCurrentItem();
$w("#googleMaps1").location = {
"latitude": currentItem.latitude,
"longitude": currentItem.longitude,
"description": currentItem.mapdescription
};
} );
} );