It's not required that the file extension be .kml. But if it does not end in .kml, you can say that it is a KML file by specifying the content-type. If the content-type is not set and the file extension is not .kml, we try to guess whether it is a KML file by looking at the first little bit of the document - which is why removing the comments would help.
On Wednesday, April 4, 2012 8:05:36 PM UTC+10, geoco...@gmail.com wrote: > > On Apr 4, 12:11 am, "Enoch Lau (Google Employee)" > <enoch...@google.com> wrote: > > We took a look and it appears that this file wasn't detected as a valid > KML > > file by the rendering engine. To fix this, you could: > > > > - Remove the comments between the kml & kml tags at the top of the > file > Why would comments cause validation to fail? > > > - Rename to .kml > This has never been required before. My server doesn't let me > serve .kml; .xml files have always worked fine with Google Maps > before. > > > - Set the content type to be Content-Type: > > application/vnd.google-earth.kml+xml > again, this is a change; plain xml has always worked before now (and > continues to I believe) > > -- Larry > > > > > To assist with debugging, KmlLayer now has a status property: > https://developers.google.com/maps/documentation/javascript/reference... > > In this particular instance, the status was INVALID_DOCUMENT. > > > > Enoch > > > > > > > > > > > > > > > > On Friday, 30 March 2012 00:06:27 UTC+11, rmcguire wrote: > > > > > Could someone please look at my page at > > >www.meadowlarkco.com/regulationsmap2.html > > > and tell me why my borders around my states aren't showing up and > > > hence why my infowindows don't display? > > > > > thanks -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/oiCJ9f7UZsMJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.