Results 1 to 2 of 2

Thread: Google Earth API and kml

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    1

    Default Google Earth API and kml

    Hello there
    After a lengthy perusal of the online Google help, I am struggling to come up with the code that I need.

    What I am trying to do is create a webpage to store locally on my C: drive which will show a full size Google Earth window. Within this window, I want to look at a number of kml files stored locally, lets say called c:\trial.kml.

    I have found methods of creating a web page with just the Google Earth API which loads up a web-based kml file :

    http://code.google.com/apis/ajax/pla...fetch_good_kml

    However, I cant work out how to get the Google Earth window to be the full size of my web page, nor can I work out how to get the code to read the file c:\trial.kml.

    Can anybody please help??

  2. #2
    Junior Member
    Join Date
    Oct 2007
    Posts
    1

    Default You can't access a local file

    The Earth API doesn't allow you to access a local file through the API, it must be stored on an http server. That's standard JavaScript security. You'll get more support in the developer forum here:
    http://groups.google.com/group/googl...rowser-plugin/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •