#19 Open & Visibility Bugs

open
nobody
Bug (17)
5
2010-10-11
2010-10-11
Dan Avni
No

when rendering the kml xml, the open & visiblity properties of at least the document & folder containers is rendered only if it is set to false.
if i create a document with open=true and inside it a folder with open=true and export to kml and then open it in google earth, the document and folder are not open by default because the open has not been rendered to the kml.

either the open and visibility should be nullable and rendered if they have a value or they should be always rendered to the xml like so:
in Kml22, file geFeature function ToKML
kml.WriteElementString("visibility", Convert.ToInt16(this.Visibility).ToString());
kml.WriteElementString("open", Convert.ToInt16(this.Open).ToString());

Discussion


Log in to post a comment.