![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
World Wind enthusiast
Join Date: Aug 2004
Location: Los Angeles
Posts: 354
![]() |
Hey guys,
I thought I should share some KML code that I've been working on the past several weeks. It's basically a framework to load in KML files from a Uri, with hooks made for implementations of styles, placemark icons, network links (without the auto-update yet), and KMZ. One issue is that I had to do was change the Layer interface to add a "Uid" (Unique Id) concept, and I changed AbstractLayer to assign it automatically when a layer is created. I've included the modified files. I might revisit this in a way that doesn't require this change, but I'm doing things in the interest of speed rather than compatibility with other groups. ![]() You can see this in action at: http://www.intelesense.net/ivj/ The "Users Online" layer is coming from a KML, and I also added the USGS Real-Time Earthquake KML file, which demostrates Network Links. Again, the network links don't refresh yet, but that shouldn't be too big a deal to add. (There is a Layer Manager control that opens up from the left side of the applet.) Let me know what you guys think, and feel free to help me make this better. Thanks.
__________________
~ just a programmer ~ |
|
|
|
|
|
#2 |
|
World Wind enthusiast
Join Date: Aug 2004
Location: Los Angeles
Posts: 354
![]() |
oh yeah, forgot to post how to use it:
KmlDocument kmlLayer = new KmlDocument(kmlUri, this.wwd, enabled); kmlLayer.setName(layerName); then add the layer to your layer tree. ![]()
__________________
~ just a programmer ~ |
|
|
|
|
|
#3 |
|
Cosmic Overlord
Join Date: Oct 2004
Location: United Kingdom
Posts: 2,362
![]() |
Java! Dude what were you thinking
Thanks for this though I'm sure many people will find it useful. |
|
|
|
|
|
#4 | |
|
World Wind enthusiast
Join Date: Aug 2004
Location: Los Angeles
Posts: 354
![]() |
Quote:
![]()
__________________
~ just a programmer ~ |
|
|
|
|
|
|
#5 |
|
Cosmic Overlord
Join Date: Oct 2004
Location: United Kingdom
Posts: 2,362
![]() |
Someone managed to seprate WorldWindow, the changes are in SVN, not sure if that means you could run it in a browser, adamhill knows more, he was impressed with the changes. I do agree WW in a browser looks cool, but lots of people have had trouble getting it going, it's worse than .Net for dependencies, latest jogl, latest gpu driers, intel gpu issues (needs some sandard texture format or something), but of course it is still alpha
![]() |
|
|
|
|
|
#6 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
Nice work Chris. I haven't looked at the code yet, but thanks.
One thing with the applet: the VE layer should be higher up in the layer list - it gets overdrawn by other layers. |
|
|
|
|
|
#7 | |
|
World Wind enthusiast
Join Date: Aug 2004
Location: Los Angeles
Posts: 354
![]() |
Quote:
![]()
__________________
~ just a programmer ~ |
|
|
|
|
|
|
#8 |
|
Junior Member
Join Date: May 2007
Location: Ottawa, Ontario, Canada
Posts: 5
![]() |
Thank you for sharing this! The demo looks excellent.
|
|
|
|
|
|
#9 |
|
Super Member
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
![]() |
I must be doing something wrong. The demo is not working for me. I just installed the latest Jave RTE. I can see the menu, and the placemarks, but no globe. Maybe my 128MB video card and 1GB of ram isn't enough?
James |
|
|
|
|
|
#10 |
|
World Wind enthusiast
Join Date: Aug 2004
Location: Los Angeles
Posts: 354
![]() |
Are you able to get the worldwind.arc.nasa.gov/java/demos to work properly? Specifically the applet demos near the middle to bottom of the page?
__________________
~ just a programmer ~ |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WWJ and Platform-dependence | smcnaughton | Development Help | 31 | 11-11-2009 01:09 PM |
| Save to KML activated in WWJ : examples/Annotations.java | Karina | Applications | 10 | 05-05-2008 06:10 AM |
| need help with worldwind applet | blackscholes | Development Help | 7 | 11-12-2007 08:45 PM |
| HELP needed to get started in WWJ! Thanks! | emaronchi | Development Help | 3 | 10-18-2007 10:01 PM |
| WWJ with KML for animations | shlomi | Add-ons & Scripts | 1 | 08-31-2007 01:59 PM |