title: get selected marker google maps api 3
body: <p>in the following code generated an undetermined number of markers, this works well.</p>
  
  <pre><code>for(i=0;i&lt;idr.length;i++){
  var LatLng = new google.maps.LatLng(lat[i], lng[i]);
  m[i] = new google.maps.Marker({ 
      position: LatLng,
      icon: image,
      map: map,
      draggable: false,
      val: idr[i] 
  });         
  </code></pre>
  
  <p>}</p>
  
  <p>I want to get the properties of the corresponding marker when the mouse passes over this</p>
  
  <p>This does not apply for you should create a function for each marker and can not be that many
  This function only access the first marker</p>
  
  <pre><code>google.maps.event.addListener(m[0], "click", function(e) {
         var latitud = e.latLng.lat();
         alert(latitud);
  </code></pre>
  
  <p>});</p>