We're updating the issue view to help you get more done. 

Invalid KML IconStyle

Description

The KML generated by GeoServer does not validate against the KML schema because the Icon element in the IconStyle contains the refreshInterval, viewRefreshTime and viewBoundScale elements which are not allowed there (https://developers.google.com/kml/documentation/kmlreference#iconstyle). This can prevent some clients from being able to load GeoServer's KML.

<IconStyle>
<color>00ffffff</color>
<scale>0.4</scale>
<heading>0.0</heading>
<Icon>
<href>http://icons.opengeo.org/markers/icon-poly.1.png</href>
<refreshInterval>0.0</refreshInterval>
<viewRefreshTime>0.0</viewRefreshTime>
<viewBoundScale>1.0</viewBoundScale>
</Icon>
</IconStyle>

This issues appears to have originated in GeoServer 2.4 with the completion of https://github.com/geoserver/geoserver/wiki/GSIP-98---replace-old-KML-module-with-new-one which replaced the old KML module with one that relies on the JavaAPIforKml library. This caused GeoServer to inherit the bug from that library https://github.com/micromata/javaapiforkml/issues/9.

Environment

None

Status

Assignee

Unassigned

Reporter

Steve Ikeoka

Triage

None

Fix versions

Affects versions

2.10.1

Components

Priority

Medium