GOOGLE MAPS

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 
    }; 
} ); 

} );

1 Like

Hi
Check this thread out:

Thanks Andreas, but seems like it ended the same place my query has ended up without a result?

No that one is working by my last comments. I have tested it out.

My code is the same?

Anyone?

Answered here