A request for Google Earth users

  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Joined: May 29, 2005
  • Posts: 1417
  • Loc: 55° N, 3° W
  • Status: Offline

Post January 15th, 2009, 12:18 pm

Old post, I know, but if anyone else runs into this problem and lands here then read on...

Long story short: if you are generating kml files on the fly with something like php then it is important to be sending the correct headers.

In addition to the header I was using previously:

Code: [ Select ]
header("Content-type: application/vnd.google-earth.kml+xml");


I also added this one:


Code: [ Select ]
header("Content-Disposition: attachment; filename=\"foo.kml\"");


So far it seems to working well.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 15th, 2009, 12:18 pm

Post Information

  • Total Posts in this topic: 16 posts
  • Users browsing this forum: No registered users and 30 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.