Garthanos / geoxml

Automatically exported from code.google.com/p/geoxml
1 stars 0 forks source link

Subfolder Structure breaks when adding empty folders #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create two KML files - 1 with 2 subfolders (one empty one), the 2nd KML
file with at least 1 subfolder
2. Add and parse like normal
3. Using sidebar, uncheck the root folder of the 1st KML file.  All files
disappear.

What is the expected output? What do you see instead?
I expected on the first file's contents to disappear, but instead both
file's content disappeared.

What version of the product are you using? On what operating system?
Windowz XP.

Please provide any additional information below.
Debugging using Firebug shows the overlayman.subfolders array being filled
at index 2 with the 2nd file's subfolder list. Instead, because the first
file had 2 folders, it should be at index 3. This seems to indicate that
empty (sub)folders are not handled within the subfolder object.

Original issue reported on code.google.com by travis.c...@lmco.com on 18 May 2009 at 4:33

Attachments:

GoogleCodeExporter commented 9 years ago
At some level empty folders could be interpreted as a data error.. but I can 
certainly see circumstances where 
that is exactly what you want (for instance you might want to add content to 
those folders after the fact.)

Original comment by lanceala...@gmail.com on 29 Jul 2009 at 3:07