On Jul 27, 11:12 pm, Jennifer Dudeck <[email protected]> wrote: > As a way of checking the KML being outputted, I copied the entire > source of what was produced by the script and pasted it into a KML > file. Then I used the above method to link to said file (http:// > myfarms.org/test/tenn2.kml). It worked! So the KML being output is > fine it just... can't read it when the file extension is not .kml? > I think it's the MIME type that's important, have a look at http://code.google.com/apis/kml/documentation/kml_tut.html#kml_server
in Firebug the Content-Type is reported differently for the two files: text/xml http://myfarms.org/test/upload_from_db.php application/vnd.google-earth.kml+xml http://myfarms.org/test/tenn2.kml Also I am not sure if it's valid KML to load just a fragment with a single <Placemark> without the <kml> element and its xml namespace declaration, so it might be safer to include your placemarks inside a <kml><Folder> ... -- 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.
