Thank you, I'm working on cleaning up the coding as you suggested. The suggestion for getting the Earth View to work didn't do it. I added &sensor=false to the end of my key, but no change to get it to work.
On Feb 22, 11:37 am, Rossko <[email protected]> wrote: > > 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&v=2.x&key=ABQIAAAAoQlxjYlx7MvINW7pgHZNARRR6CApjFjMuq9pmIc3AD47nbvDwBR29Q9bLtIe6wZ52AwIncuQ8OgrJQ > " > type="text/javascript"></script> > > You ought to change it to something like > <script src="http://maps.google.com/maps? > file=api&v=2.x&key=ABQIAAAAoQlxjYlx7MvINW7pgHZNARRR6CApjFjMuq9pmIc3AD47nbvDwBR29Q9bLtIe6wZ52AwIncuQ8OgrJQ&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.
