Ah fixed it, thanks alot Rossco for putting us on the right track.
Just needed to add the following line to the php code that writes out
the kml file:
header('Content-type: application/vnd.google-earth.kml+xml');Cheers On Jun 22, 1:35 pm, Paulweb <[email protected]> wrote: > OK thanks.... but if I add the following line to .htaccess > AddType application/vnd.google-earth.kmz .kmz > > then I can no longer parse the kml file for php. I need the file > contents to be parsed for php and then output as kml.... is that > possible? > > On Jun 22, 9:11 am, Rossko <[email protected]> wrote: > > > > > > > > > > So it seems that maybe my GMaps isn't recognising any files as .kml > > > files unless .kml is the last 4 characters of the url passed to it. > > > Why could this be happening? > > > "Feeds should not be served with the "text/html" media type " > > >http://code.google.com/apis/kml/documentation/kml_tut.html#kml_server -- 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.
