I am getting below error when I am trying to call infoBox.open method in my page.
Microsoft JScript runtime error: Invalid value for property : [object Object]
The following is the code which I am using.
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);
I have declared Map object globally and binding the data as below.
var myOptions = {
zoom: 5,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
Hoping for quick response.
Thanks,
Kalyan Basa