Friday, March 28, 2008

WWJ and using JWindow to improve annotations

Here is a screenshot about something I'm trying. I have created a new Renderable object that shows a JPanel into a JWindow at a specified Position (and also a little triangle using OpenGL). The object is responsible to move the JWindow when the globe is rotated and hide it when the position is outside the frustum.

It is not finished but is a easy way to create annotation with all the power of Java :) Also it has a great effect because JWindow annotation can exists and move out the Canvas.

Monday, March 17, 2008

Load/Save configurations

Yes, too much time without news about the Balloon project but, well I continue working on it ;) and currently I'm finishing the load/save configuration mechanism.
Imagine you have an amazing set of layers pointing some images, icons, WMS servers and a couple of views. Now you want to save this "configuration" state.
That's not all. Maybe you have installed a couple of future :) Balloon plugins and they need to be capable to store their information in the save file too.

Here is a little example of configuration file:


otro sitio

Note: The bad syntax is because the syntax highlighter and blogger api. There seems to be a problem with element open closed in the same line like: <img ... />.

It is far to be like a KML file, also it isn't my intention. The configuration file must store only the current layers (with the attributes needed to restore it later) and the views currently open in the application.