Grouping WW objects from different layers
Hi,
I have created some custom objects that are made up of a variety of worldworld objects. For example, one of my types has a surface circle with a marker in the centre and a label. Just now, I have methods in my custom object to retrieve the world wind objects so that they can be added to the various special layers.
I would like to create a 'smart' layer that has the various layers I need inside and then I could just have a method to add the object to the smart layer and the internals of the smart layer would put the objects in their corresponding specialised layer.
I'm not to sure how I would go about doing this. I had thought about extending LayerList so that I could have a method to add the smart layer that would then pull out the individual layers and add them to the model. The other option could be to extend the model and do something similar.
Does this sound like a feasible approach or would there be a better way?
Thanks for any assistance.
John
|