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

Posted on 2009-04-30
Last Modified: 2013-11-10

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?
Question by:markgooding
    LVL 15

    Accepted Solution

    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/"
    LVL 4

    Author Closing Comment

    Ta! - obvious now you say it- why didn't I think of that?!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    Title # Comments Views Activity
    reading text file and converting it to csv 8 58
    php survey script 4 49
    .csv files 5 62
    Studying Angular for employability 5 40
    In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
    In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at (http://www.experts-ex…
    The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now