No, you don't have to, but you can if you want. This may help: http://notebook.kulchenko.com/maps/google-maps-dynamic-loading-of-the-api
In terms of the DOCTYPE, I use XHTML 1.0 Strict (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/ xhtml1-strict.dtd">) and it works with both API versions (and with various browsers): http://notebook.kulchenko.com/maps/google-maps-using-multiple-api-versions Paul (http://notebook.kulchenko.com/maps/) On Nov 17, 9:00 pm, rmtroutfitters <[email protected]> wrote: > When I add a doctype to my file the map does not show. I found this > FAQhttp://code.google.com/apis/maps/faq.html#loadasync > > Does that mean I have to put a button on my site to load the map?? > > On Nov 15, 12:30 am, String <[email protected]> wrote: > > > On 14 Nov, 03:02, APh <[email protected]> wrote: > > > > If I want to code by v3 than what type (version, style) of HTML (and > > >DOCTYPE) I must use for perfect code? > > > As Stephen said, it really shouldn't matter as long as your page is > > well-formed - and if you're already using W3C's validator you're going > > in the right direction. > > > As an aside, SOME early v3 examples had problems with SOME doctypes on > > SOME browsers because they didn't specify enough CSS to lay out the > > page fully on those browser/doctypecombinations. But this wasn't an > > API problem, and shouldn't affect you. > > > String > > -- 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=.
