Hot answers tagged

1

As far as I can tell, the issue is that the is being passed in as a string. So I turned them into floats by doing the following (using parseFloat): var mylat = parseFloat(place.latitude); var mylng = parseFloat(place.longitude); // TODO var myLatLng = {lat: mylat, lng: mylng};


1

Maybe this is what you are looking for?


Only top voted, non community-wiki answers of a minimum length are eligible