title: Onclick open Popup with details in Google Map Api
body: <p>I am using Google Map Api.</p>
  
  <p>How to open a popup when click on specific point.</p>
  
  <p>That popup should contain Info about the point.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var myCenter=new google.maps.LatLng(51.508742,-0.120850);
  
  function initialize()
  {
      var mapProp = {
          center:myCenter,
          zoom:5,
          mapTypeId:google.maps.MapTypeId.ROADMAP
          };
  
      var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
  
      var arr =  [{latitude_chargement:60.05,longitude_chargement:-43.1667},{latitude_chargement:45.7604,longitude_chargement:5.68552},{latitude_chargement:48.853873,longitude_chargement:2.351074}];
  
  
      for(i = 0; i &lt; arr.length; i++) 
      {  
          marker =  new google.maps.Marker({
          position: new google.maps.LatLng(arr[i].latitude_chargement, arr[i].longitude_chargement),
          map: map,
          icon: 'https://maps.google.com/mapfiles/ms/icons/blue-dot.png'
          });
      }
      marker.setMap(map);
  }
  
  google.maps.event.addDomListener(window, 'load', initialize);
  </code></pre>