Hi, I have integrated a Google Map in a webpage. The map contains a marker and an infowindow. The infowindow doesn't render correctly. There are some grey areas around it. What did I do wrong ?
The grey appear when uncommenting this line of code: infowindow.open(map,marker); Below a printscreen and some code. Printscreen: http://www.mendoweb.be/docs/bug.jpg Code: <script type="text/javascript" src="http://maps.google.com/maps/api/js? sensor=false"></script> <script type="text/javascript"> function initialize() { var latlng1 = new google.maps.LatLng(50.8444, 4.4888); var latlng2 = new google.maps.LatLng(50.8414, 4.4888); var myOptions = { zoom: 14, center: latlng1, disableDefaultUI: true, navigationControl: true, scaleControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var contentString = '<div style="line-height:24px;padding:5px;"><b>Adresse</b><br> Avenue des Rossignols<br>1970 Wezembeel-Oppem</div>'; var infowindow = new google.maps.InfoWindow({ content: contentString }); var marker = new google.maps.Marker({ position: latlng2, map: map, title:"Hello World!" }); infowindow.open(map,marker); } </script> Thank you for any help !! -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
