Concatenation error?

With this:
let GoogleMapsName = $w(‘#ddsPropsVIew’).getCurrentItem().title;
$w(“#googleMaps1”).location = {
“longitude”: -68.55090565142484,
“latitude”: -34.583373908993565,
“description”: + GoogleMapsName
};

I get:
The description parameter that is passed to the location method cannot be set to the value NaN. It must be of type string.

I am prob. doing some wrong concatenation, but I have searched and can´t figure it out.

Try the sample from docs

$w(“#myGoogleMap”).location = {
“latitude”: 37.77065,
“longitude”: -122.387301,
“description”:“Wix Office”
};

Thanks Andreas, that´s what I started out with. It´s just that I do not know how to concatenate a var, been reading for hours, will get it somehow. “You think your out, and then they drag you back in”.
Off topic: if wixsweden.com is yours, your mail server is down:
"The response was:

DNS Error: 364141 DNS type ‘mx’ lookup of wixsweden.com responded with code SERVFAIL"

Hmm… I’m not the Wix Coding guru… but is the + sign necessary?

wouldn’t it work that way?

let GoogleMapsName = $w('#ddsPropsVIew').getCurrentItem().title;
	$w("#googleMaps1").location = {
                               "longitude": -68.55090565142484,
                               "latitude": -34.583373908993565,
                               "description": GoogleMapsName
                             };

Just a thought, if you run it like the sample I wrote does it work and show description WIX Office?

$w("#myGoogleMap").location = {
                               "latitude": 37.77065,
                               "longitude": -122.387301,
                               "description":"Wix Office"
                             };

If that works what do you get if you run console.log(GoogleMapsName); in your script?

Tom, Andreas, thanks, late last night (almost like the old days, just without pizza) I got it working.

Would you mind sharing how you did solve it for others with or without pizza to save time? :slight_smile: