Hello, I have a test site (local only), that show a google map v3.The script is loaded in the header:
--------CODE <script type="text/javascript" src="http://maps.google.com/maps/api/js? sensor=true"></script> <script type="text/javascript"> //<![CDATA[ var gf_map =null ; function loadUserMap() { var myOptions = { mapTypeId: google.maps.MapTypeId.ROADMAP, navigationControl: true, navigationControlOptions: { style: google.maps.NavigationControlStyle.DEFAULT}, mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DEFAULT}, zoom: 1 }; gf_map = new google.maps.Map(document.getElementById("gf_admin_map"), myOptions); var infoWindow; infoWindow = new google.maps.InfoWindow(); google.maps.event.addListener(gf_map, 'click', function() { infoWindow.close(); }); gf_map.setCenter(new google.maps.LatLng(46.336783402887725,6.89117431640625)); var kmlObj = new google.maps.KmlLayer('http://gmaps- samples.googlecode.com/svn/trunk/ggeoxml/cta.kml') ; kmlObj.setMap(gf_map); } if (window.addEventListener) { window.addEventListener("load", loadUserMap, false); } else if (document.addEventListener) { document.addEventListener("load", loadUserMap, false); } else if (window.attachEvent) { window.attachEvent("onload", loadUserMap); } //]]> </script> --------- CODE And the div in the body: --------- CODE <div id="gf_admin_map" style="border:1px solid #666666; width:500px; height:500px"></div> --------- CODE But only a little part of the map is showed, the div is 500x500 px, but only a little part is used by the maps, the largest part of the map is a grey zon. I cannot find my error, please help me. Ced76 -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
