Google Map Issue, longitude and latitude

$w.onReady( function () {
$w(“#dynamicDataset”).onReady(() => {
let currentItem = $w(“#dynamicDataset”).getCurrentItem();
$w(“#googleMaps”).location = {
“latitude”: currentItem.latitude,
“longitude”: currentItem.longitude,
};
});
});

please check and tell me this code is correct or because this code is not work