modaresimr / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
1 stars 0 forks source link

Publish KML file navigation/selection tree javascript #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The GE application has a tree-like control for the saving and invocation of 
folders and placemarks clued from the structure of the KML file. Need 
javascript 'widget' or code available to approximate this functionality of 
being able to execute a network link and have the result organization and 
checkboxes (display control) displayed in a tree view. Having this placeable 
menu would be a nice addition to the GE API, otherwise I imagine many will 
start building their own to provide this functionality.

Requested by: doug_nebert

Supported by: jcothran

Original issue reported on code.google.com by api.roman.public@gmail.com on 12 Aug 2008 at 8:45

GoogleCodeExporter commented 9 years ago
Goog Idea

Original comment by JSOmi...@gmail.com on 10 Oct 2008 at 1:05

GoogleCodeExporter commented 9 years ago
I'm working on a demo on how to do this.

Original comment by api.roman.public@gmail.com on 5 Feb 2009 at 8:40

GoogleCodeExporter commented 9 years ago
See the published demo in the demo gallery:

http://code.google.com/apis/earth/documentation/demogallery.html?searchquery=dom
%20tree

Original comment by api.roman.public@gmail.com on 10 Feb 2009 at 8:43

GoogleCodeExporter commented 9 years ago
Issue 70 has been merged into this issue.

Original comment by api.roman.public@gmail.com on 10 Feb 2009 at 9:57

GoogleCodeExporter commented 9 years ago
likeItAlot.

Original comment by desolate...@gmail.com on 5 Mar 2009 at 6:57

GoogleCodeExporter commented 9 years ago
When I use this Demo for my website and I download the *.js files and *.css 
files in 
my webspace the content will be not viewable. I have the links in the html demo 
file 
make for my website structure. But then i use the dojo.css and tundra.css from 
the 
api link by ajax the Tree in the left box not appears. Then i use the *.css 
files 
from my own webspace the map and the tree not appears. I think, that i have not 
the 
hole code.

greets tobemank

Original comment by tobem...@web.de on 27 Mar 2009 at 2:24

GoogleCodeExporter commented 9 years ago
Is it possible to get the code for Earth API - KML DOM Tree presented on
http://earth-api-samples.googlecode.com/svn/trunk/demos/dom-tree/index.html
with the following modification:
No input field for entering the kml or kmz file.
I would prefer to define the url of the kml file in the code.

Where can I get the necessary files like
ge-poly-fit-hack.js,  kmldomwalk.js, tundra.css
which are referenced?

Original comment by alfons.d...@googlemail.com on 1 Apr 2009 at 12:11

GoogleCodeExporter commented 9 years ago
I've been trying to hide the kml input load button and call it when page loads 
as 
well, no luck yet, looks like a major rewrite but would love to have it!

Original comment by desolate...@gmail.com on 1 Apr 2009 at 10:44

GoogleCodeExporter commented 9 years ago
This looks great, it is vey useful, congratulations!.
I've tried loading a KML with a <NetworkLink> element referring another KML.
It works for the plugin view but it doesn't for the tree.
Is it possible? What do I need to add or change?
Thanks in advance.

Original comment by zero.pat...@gmail.com on 23 Apr 2009 at 10:58

GoogleCodeExporter commented 9 years ago
Hi zero.patatero,

The Earth API doesn't expose the underlying features inside a <NetworkLink>, so
unfortunately as of right now, its children won't appear in the tree.

Roman

Original comment by api.roman.public@gmail.com on 23 Apr 2009 at 8:55

GoogleCodeExporter commented 9 years ago
I've modified this so it will load the KML when the page loads and removed the 
load 
button and the text box.  If you are interested let me know and I'll upload it 
with 
permission from Roman etc, also I would need instructions on how to upload.

Original comment by desolate...@gmail.com on 24 Apr 2009 at 2:28

GoogleCodeExporter commented 9 years ago
Hi Roman,
First of all, thank you for your quick answer and all the support.

I've been reading the GE Api reference, and found that a <NetworkLink> element 
is 
considered a Feature, like the <Placemark>.
I think the target URL of the <NetworkLink> element can be get invoking:
this.getLink().getHref() from the callback method passed to the walkdown.
Once obtained that, a recursive invoking of walkKmlDom may be performed, 
keeping in 
mind the tree structure should be built in a coherent way.

I've got very limited skills coding JavaScript, so I actually don't know if it 
is 
possible. What's your opinion?
Thanks in advance,
Jose.

Original comment by zero.pat...@gmail.com on 24 Apr 2009 at 8:20

GoogleCodeExporter commented 9 years ago
hello roman i want to use the KML DOM TREE in my page could you help me.
my web page is www.e.km6.net erick romero from santa marta colombia

Original comment by eromerob...@gmail.com on 11 May 2009 at 4:59

GoogleCodeExporter commented 9 years ago
my email is eralrobe@msn.com please help me i think that page will look so nice 

Original comment by eromerob...@gmail.com on 11 May 2009 at 5:01

GoogleCodeExporter commented 9 years ago
desolatechair, i would like to use your rewritten script. To preaload a kmz 
file when
the page opens...

Original comment by robbert....@gmail.com on 20 Jul 2009 at 10:01

GoogleCodeExporter commented 9 years ago
Can you please mail me about it? my email is  robbert.odijk at gmail dot com.

Thanks!

Original comment by robbert....@gmail.com on 21 Jul 2009 at 11:29

GoogleCodeExporter commented 9 years ago
@ desolatechair; I'm also interested in seeing your revised code to preload 
kml/kmz

Original comment by geomatri...@gmail.com on 18 Nov 2009 at 1:10

GoogleCodeExporter commented 9 years ago
desolatechair:

Not a programmer, but have worked thorugh the whole exercise. Trying to build a 
community site for people to view their projects against the large database of 
kml 
files I've built and would like to modify the script by Roman in two ways.

1st: would like to load a base map without the input button as you have figured 
out.
2nd: would like to convert the input button to an upload button so people can 
load a 
marker or small polygon file and overlay on my base maps to view their projects 
in 
realtion to my databse.

I'm currently trying to incorporate a note pad and use dojo drag and drop to 
let 
people also create their own report and print it out as they search through my 
database (but that is a big chunk to bite off I'm finding!)

base application is online at 
http://www.civitaz.com/earth/earth_api__kml_dom_tree.htm

and my default e-mail is info@civitaz.com.

at the least, I would love to get to the point that people can log on and see 
my 
database of kml files without the need to load it from the input button, so I 
would 
really really appreciate any input (been trying for a couple days, not a 
programmer 
so I've kind of hit a wall on that one!)

Thank you so much.

Original comment by i...@civitaz.com on 23 Nov 2009 at 10:16

GoogleCodeExporter commented 9 years ago
desolutechair:

I too would like to use your rewritten script. To preaload a kmz file when
the page opens...

My e-mail address is phil.walker@sunandshadows.net

Your help is appreciated,

Season's Greeting

phil

M

Original comment by pw240...@gmail.com on 29 Dec 2009 at 8:22

GoogleCodeExporter commented 9 years ago
I would also like to use your rewritten script.  Could you please email to 
bsnuggs at
shoeshow dot com?

Original comment by bob.snu...@gmail.com on 10 May 2010 at 8:47

GoogleCodeExporter commented 9 years ago
I've developed an alternative library that utilizes jquery and supports 
expanding of networklinks and restoring the 
tree state when the browser is refreshed.

http://code.google.com/p/kmltree/

The documentation is a little lacking right now, but myself and my employer are 
committed to its ongoing 
support. It's currently driving several apps such as 
http://northcoast.marinemap.org.

Original comment by underbluewaters on 10 May 2010 at 9:10

GoogleCodeExporter commented 9 years ago
I have been trying to implement KML dom tree on a IIS 6 based server, and 
getting nowhere. Is there something that is required for this to work on a IIS 
based server.

Original comment by michelle...@gmail.com on 25 Aug 2010 at 6:23