jsoliveira / javaapiforkml

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

maxSessionLength defaults to 0.0 when KML Spec says it should be -1 #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Create a NetworkLinkControl element using 
KmlFactory.createNetworkLinkControl()
2.  Populate NetworkLinkControl with an Update using 
networkLinkControl.setUpdate()
3.  Add NetworkLinkControl to a KML element.  
kml.setNetworkLinkControl(networkLinkControl)
4.  Marshal using kml.marshal()
5.  Observe that maxSessionLength element is added to NetworkLinkControl 
element and is set to 0.0.  

What is the expected output? What do you see instead?
maxSessionLength element should be set to -1.0.  See 
http://code.google.com/apis/kml/documentation/kmlreference.html#networklinkcontr
ol

What version of the product are you using? On what operating system?
JavaAPIforKml 2.2.0

Please provide any additional information below.

Original issue reported on code.google.com by barnett....@gmail.com on 27 Sep 2011 at 1:04