Skip to content

Commit bbe4ad5

Browse files
Beak-manmarkpet49
andauthored
Fix to correctly display KML files with no altitudeMode specified (NASAWorldWind#826)
* Updated npm packages with 'npm audit fix' * Added validation for when the KML file doesn't specify altitudeMode - Resolves issue of KmlPolygon not creating SurfacePolygon when KML file does not specify altitudeMode. - As per KML's 2.2 specification, if altitudeMode is not specified, it should be interpreted as CLAMP_TO_GROUND. This commit ensures this behavior. - Added method for validation of altitudeMode existence in KML file, imitating WWJ's KMLPlacemark behavior. * Temporarily changed data source used in KML example to test a KML file with no altitudeMode specified * Added KML file with no altitudeMode specified - Downloaded from here: https://opendata.hayward-ca.gov/datasets/hayward-general-plan-land-use?geometry=-122.322%2C37.590%2C-121.845%2C37.685 * tests for kmlInnerBoundary glitch * Returned KML example to its previous test file source * Added TODO comment regarding boundary graphic glitches * Changed isValidAltitudeMode to use WorldWind constants. - Ran code formatter on the file Co-authored-by: Mark Peterson <[email protected]>
1 parent bcf384c commit bbe4ad5

File tree

3 files changed

+857
-2127
lines changed

3 files changed

+857
-2127
lines changed

0 commit comments

Comments
 (0)