title: Microsoft JScript runtime error: Invalid value for property <map>: [object Object]
body: <p>I am getting below error when I am trying to call infoBox.open method in my page.</p>
  
  <p><strong>Microsoft JScript runtime error: Invalid value for property : [object Object]</strong></p>
  
  <p>The following is the code which I am using.</p>
  
  <pre><code>        var myInfoOptions = {                        
                  content: 'Test'//$extradiv.html()
                  , closeBoxMargin: "12px 2px 2px 2px"
                  , closeBoxURL: '/Images/infowindow-close.gif'
                  };
  
                  var ib = new InfoBox(myInfoOptions);
                  var info_Marker = new google.maps.Marker({
                      position: new google.maps.LatLng(e.latLng.lat(), e.latLng.lng())
                  });
                  info_Marker.setMap(null);
                  ib.open(map, info_Marker);
  </code></pre>
  
  <p>I have declared Map object globally and binding the data as below.</p>
  
  <pre><code>   var myOptions = {
              zoom: 5,
              center: latlng,
              mapTypeId: google.maps.MapTypeId.ROADMAP
          }
          map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  </code></pre>
  
  <p>Hoping for quick response.</p>
  
  <p>Thanks,<br/>
  <strong>Kalyan Basa</strong></p>