[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 386
  • Last Modified:

Can I use google maps api and kml without using a file?

Hi,

I'm planning a little web application mostly using php as that is what I am familiar with. The idea is to general a kml document on-the-fly and display it on a google map. From the examples I've seen, it is also possible to write a kml file from php, and it is possible to display kml files via the google maps api. Therefore it would be possible to write a application to combine these two by way of a temporary kml file on the server, but is there anyway I could avoid having a temporary kml file? if so... how?
0
markgooding
Asked:
markgooding
1 Solution
 
oobaylyCommented:
Never used google maps to display a kml file, but I'm guessing you pass the api a URL to the kml file. All you should have to do is pass a URL to a php file along with some variables in the querystring.
The php file just has to general the kml dynamically from the variables in the querystring. Just to make sure set the content-type is set to "application/vnd.google-earth.kml+xml"
0
 
markgoodingAuthor Commented:
Ta! - obvious now you say it- why didn't I think of that?!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now