Hi, I'm working on creating a Google map which can be found at: http://www.advancementplus.org/pscv1.html
When I created the web page, my html editor automatically inserted the following standard text: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> However, the Google map does not show up if this text is part of the html code. The problem seems to be with the script tag that is part of the code to initialize the Google map: <script type="text/javascript"> function initialize() { var latlng = new google.maps.LatLng(42.34332, -71.05545); var myOptions = { zoom: 12, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; My html editor shows me a message saying that in XHTML 1.0 Transitional the tag <html> cannot contain a tag <script>. Interestingly, an earlier set of <script> tags does not seem to generate any problems.<script type="text/javascript" src="http:// maps.google.com/maps/api/js?sensor=false"></script> If I remove the standard XHTML declaration and just start with the tag <html>, the web page works fine. I know there have been past discussions of this issue on these forums, but even after reading them I am confused as to the source of this error and whether there is any fix available. Heitor -- 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.
