title: Google place markers infowindow
body: <p>I am trying to place markers on Google Map that captures the coordinates (as shown below). The code is working fine, when clicking on the map I can get markers with infowindow that automatically opened with coordinates info. However, I cannot get the infowindow re-opened after I close it. Thanks! </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function placeMarker(position, map) {
    var marker = new google.maps.Marker({
      position: position,
      map: map,
    });
    var infowindow = new google.maps.InfoWindow({
      content: 'Latitude: ' + position.lat() +
        '&lt;br&gt;Longitude: ' + position.lng()
    });
    infowindow.open(map, marker);
  }
  map.addListener('click', function(e) {
    placeMarker(e.latLng, map);
    map.setZoom(9);
    map.setCenter(marker.getPosition());
    infowindow.setContent(content);
  });</code></pre>
  </div>
  </div>
  </p>