I am also having the exact same problem. While viewing the page in Safari's Web Inspector, I found that the API does modify the contents of the HTML by adding many DIVs. But the page remains blank.
On Jun 28, 3:15 pm, Serge <[email protected]> wrote: > Hi, > > i just started to work with maps api but immediately found very > strange behavior: example > fromhttp://code.google.com/apis/maps/documentation/javascript/introductio... > working only if no changes made to the code. Even if i add only this > string : > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ > TR/html4/strict.dtd"> > > it fails, i receive some data but it ends with "204 no content" > message from gg.google.com and i can see only blank page. I haven't > found any explanation of this. Only a few mentions of the same problem > in previous firefox and firebug versions. I use firefox 3.6.3 ( with > and even without firebug) and opera 10.11. > > code: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ > TR/html4/strict.dtd"> > > <html> > <head> > <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> > <script type="text/javascript" src="http://maps.google.com/maps/api/js? > sensor=false"></script> > <script type="text/javascript"> > function initialize() { > var latlng = new google.maps.LatLng(-34.397, 150.644); > var myOptions = { > zoom: 8, > center: latlng, > mapTypeId: google.maps.MapTypeId.ROADMAP > }; > var map = new > google.maps.Map(document.getElementById("map_canvas"), myOptions); > } > > </script> > </head> > <body onload="initialize()"> > <div id="map_canvas" style="width:100%; height:100%"></div> > </body> > </html> > > Please provide explanation/description of api use rules, if it not > works as it normally should. Maybe i need some additions? > > Regards, > Serge -- 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.
