This is my code:
google.maps.event.addListener(marker, ‘click’, () => {
infoWindow.open(this.map, marker);
console.log(marker.getPosition().lat()); //this works
marker.draggable = true; //this doesnt work
this.showBtAlter = true; //this doesn't work. Should show a button on the screen, it works in other places.
});