![]() |
|
|||||||
| Developers' Corner General World Wind development. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Super Member
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
![]() |
Hi,
I'm loading a set of image layers with an XML file in config\earth. Is there some way to add these layers "on the fly"? It would be great if there was a way to dynamically add and remove these layers. Also, I have three child layers, which should be "ShowOnlyOneLayer", and each child layer has bout 6 addition child layers under them that should also be "ShowOnlyOneLayer", and each of these layers can have from 1 to 3 actual images under them which should all be show at the same time. The problem is, at the first child layer, if I move the selection using Layer Manager from one child layer to the next, all of the sub layers get unchecked. When they first load, I set them all to true, but when I change the top child layer from one to the next, everything under the newly selected layer gets unchecked. I didn't see any logic in configurationloader.cs that should do that. I know I can right click on the layer and pick "check all children", but I don't want to have to explain that one to our users. Thanks, James Last edited by James_In_Utah; 02-22-2008 at 10:46 AM. |
|
|
|
|
|
#2 |
|
Super Member
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
![]() |
Well, I found the code that is unchecking all of the sub layer childeren. It is:
m_renderableObject.ParentList.TurnOffAll Children(); at line 930 in Menu.cs in PluginSDK. Apparently there is no way to only turn off all the entries at the current layer, and then reselect the one that was just picked. So the solution is to turn off everything from the current layer down, then turn on the selected item. I guess I won't be using this. It's better to not use "ShowOnlyOneLayer" and just train the use to not select more than one at a time. If anyone can think of a way to leave the sublayers checked, when the selection is moved from one to the next in a "ShowOnlyOneLayer" layer, please let me know. Thanks, James |
|
|
|
![]() |
| 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 |
| Reloading an XML | coloradokid | WorldWind XML | 3 | 12-03-2007 09:28 PM |
| Reloading xml files | vasco | Developers' Corner | 1 | 01-03-2007 05:07 PM |