title: Google map, remove control from controls array
body: <p>I have a google map and
  I´m using a hacky solution for infowindows not to show up under a div that overlays the google map if a special user-interaction is done.</p>
  
  <p>i execute this code after user-interaction :</p>
  
  <pre><code>var controlDiv = document.createElement('div');
  controlDiv.style.width = '220px';
  controlDiv.style.height = '500px';
  map.controls[google.maps.ControlPosition.RIGHT_TOP].push(controlDiv);
  </code></pre>
  
  <p>that works wonderfully, but if the user closes the overlay i want to remove the element i pushed into the array.</p>
  
  <p>i tryed to splice it out, but i have no idea how to select it, or what it´s index is.</p>
  
  <pre><code>map.controls[google.maps.ControlPosition.RIGHT_TOP].splice("?", 1);
  </code></pre>
  
  <p>other possibility may be </p>
  
  <pre><code>delete map.controls[google.maps.ControlPosition.RIGHT_TOP]
  </code></pre>
  
  <p>but i just dont get the element removed
  plesea help
  thanks in advance</p>