kml files on local disk

133 views
Skip to first unread message

Montana DNRC

unread,
Dec 15, 2009, 4:16:24 PM12/15/09
to KML Developer Support - Google Earth Plug-in
I am wondering if the plug in can be used to view KML files stored on
the local drive. Much like the stand alone verion of GE allows you to
open files. My agency will not allow the stand alone version because
of the auto update issue, however, I can use the plug in on my
browser. The kml I want to view is on my local drive. I can paste
the kml text into the interactive sampler, and it works fine, but
cannot find any code to tell the browser and plug in to load a file
from my local drive. All documentation points to URL addresses for
kml files. Anyone else written any code to load local kml files into
the browser plug in?
Message has been deleted

StarTraX

unread,
Dec 15, 2009, 4:32:43 PM12/15/09
to KML Developer Support - Google Earth Plug-in
Issue is that JS can't access local drives (Merci Dieu!).
The only browser based approach would be to put the kml files on a web
server.
My solution is to develop in .NET, which can access local drives and
invoke the API in a webBrowser with embedded JS to drive the API.

fraser (Earth API Guru)

unread,
Dec 16, 2009, 6:41:37 AM12/16/09
to KML Developer Support - Google Earth Plug-in
Hi,

Take a look at this project.
http://code.google.com/p/winforms-geplugin-control-library/
It uses a simple, inbuilt, TCP server to over come the local file
issues.

F.
Reply all
Reply to author
Forward
0 new messages