Greetings, I have a rather interesting discovery. I checked for a post that had this specific bug, but I could not find one. Here is my code:
<html> <head> <title>Google Maps</title> <script type="text/javascript" src="http://maps.google.com/maps/api/js? sensor=false"></script> <script type="text/javascript"> var map; function initialize() { var myLatLng = new google.maps.LatLng(0, 0); var myOptions = { zoom: 1, center: myLatLng, mapTypeId: google.maps.MapTypeId.SATELLITE }; map = new google.maps.Map(document.getElementById ("map"),myOptions); } </script> </head> <body style="margin:0px; padding:0px;" onload="initialize()"> <div id="map" style="width: 512px; height: 512px;"></div> </body> </html> Please note two things: 1) The latitude and longitude are set to 0,0 2) The div that contains the map has a static width and height of 512px If you try to view this map in a web browser, you do not see the map. If you use the mouse to zoom out, you will see the map. If you change the latitude or longitude to any valid value besides 0,0 you will see the map. If you change the width or height to any valid value besides 512px, 512px you will see the map. I hope that someone finds this information useful, and/or as interesting as I did. Thanks for your time.
-- 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.
