> This has really got me baffeled.  I'm afraid to change the code since
> it's so differant then what I've got now.  I'm confused as to if I'm
> loading the Maps JavaScript API or loading the Maps via the common
> loader as shown in the examples you suggest and in the example, is the
> key shortened from my key or is it what should be used with the &
> sign.  Is there an example map with Earth View that I can see the
> source code to review?  Gil

This is the line in your code that loads the maps API
<script src="http://maps.google.com/maps?
file=api&amp;v=2.x&amp;key=ABQIAAAAoQlxjYlx7MvINW7pgHZNARRR6CApjFjMuq9pmIc3AD47nbvDwBR29Q9bLtIe6wZ52AwIncuQ8OgrJQ
 "
type="text/javascript"></script>

You ought to change it to something like
<script src="http://maps.google.com/maps?
file=api&amp;v=2.x&amp;key=ABQIAAAAoQlxjYlx7MvINW7pgHZNARRR6CApjFjMuq9pmIc3AD47nbvDwBR29Q9bLtIe6wZ52AwIncuQ8OgrJQ&amp;sensor=false"
type="text/javascript"></script>


However, this time I've noticed a much more serious problem.
If you 'view source' in your browser, your page is structured like
<!-- comments-->
<html>
 <head>
    content
 </head>
 <body ....>
     content
      <!DOCTYPE ...
<html ...>
 <head>
     content
</head>
<body onload="makeMap();">
    content
</body>
</html>
   content
 </body>
</html>
   content

I'm afraid that is hopelessly invalid, I'm amazed anything works at
all.
Only one form is allowed for a webpage -
<!DOCTYPE ...
<html ...>
 <head>
     content
</head>
<body ...>
    content
</body>
</html>

Only one <html> containing everything but doctype.
Only one <head> containing script and css
Only one <body> containing html tags and perhaps some script

-- 
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.

Reply via email to