# KML - Unsupported feature: ScreenOverlay

**URL:** <https://community.cesium.com/t/kml-unsupported-feature-screenoverlay/4046>\
**Category:** CesiumJS\
**Created:** [April 26, 2016, 3:11am UTC](https://community.cesium.com/t/kml-unsupported-feature-screenoverlay/4046 "2016-04-26T03:11:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chguo123](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@chguo123](https://community.cesium.com/u/chguo123)\
**Post date:** [April 26, 2016, 3:11am UTC](https://community.cesium.com/t/kml-unsupported-feature-screenoverlay/4046/1 "2016-04-26T03:11:19Z")

</div>

Hi,there,  
I got a problem when I load KML file with KmlDataSource. Here is the code to read KML file:

var options={  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;camera: viewer.scene.camera,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;canvas: viewer.scene.canvas  
&nbsp;&nbsp;&nbsp;&nbsp;};  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var filename='../Apps/SampleData/kml/Gasometer\_2/Gasometer\_2.kml';  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewer.dataSources.add(Cesium.KmlDataSource.load(filename, options)).then(function(dataSource){  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewer.flyTo(dataSource.entities);  
&nbsp;&nbsp;&nbsp;&nbsp;});

When I load this file,an error emerged. That is "KML - Unsupported feature: ScreenOverlay". And because of this, the data can't be loaded normally.

The file "Gasometer\_2.kml" include "ScreenOverlay" as below:

\<ScreenOverlay\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<name\>Virtual City Model Berlin\</name\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<Snippet maxLines="1"\>[http://www.virtual-berlin.de/](http://www.virtual-berlin.de/)\</Snippet\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<description\>\<![CDATA[\<a href="[http://www.virtual-berlin.de/](http://www.virtual-berlin.de/)" align="center"\>\<br /\>Virtual City Model Berlin\</a\>]]\>\</description\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<Icon\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<href\>[http://node02.3d-stadtmodell.eu/berlin/GE/data/3l8xd0p9b5onft3x.png](http://node02.3d-stadtmodell.eu/berlin/GE/data/3l8xd0p9b5onft3x.png)\</href\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</Icon\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<overlayXY x="0.5" y="0" xunits="fraction" yunits="fraction"/\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<screenXY x="0.5" y="80" xunits="fraction" yunits="pixels"/\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<rotationXY x="0.5" y="0.5" xunits="fraction" yunits="fraction"/\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<size x="230" y="0" xunits="pixels" yunits="fraction"/\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</ScreenOverlay\>

Hope someone can help me get out of this problem. thx.

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [April 26, 2016, 2:21pm UTC](https://community.cesium.com/t/kml-unsupported-feature-screenoverlay/4046/2 "2016-04-26T14:21:10Z")

</div>

Hello,

We don’t currently have ScreenOverlay implemented in Cesium. However, the rest of the document should still be processed correctly.

Does the KML file work when you remove the screen overlay?

Best,

Hannah

---

<div class="post-metadata">

**Author:** ![chguo123](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@chguo123](https://community.cesium.com/u/chguo123)\
**Post date:** [April 30, 2016, 2:22am UTC](https://community.cesium.com/t/kml-unsupported-feature-screenoverlay/4046/3 "2016-04-30T02:22:34Z")

</div>

在 2016年4月26日星期二 UTC+8下午10:21:10，Hannah Pinkos写道：

> Hello,
> 
> We don't currently have ScreenOverlay implemented in Cesium. However, the rest of the document should still be processed correctly.  
> Does the KML file work when you remove the screen overlay?
> 
> Best,
> 
> Hannah

Actually,the document can be processed even if I don't remove ScreenOverlay. The problem is the file contains two part: a geometry file and a extruded file.See as following:

\<NetworkLink\>  
&nbsp;&nbsp;\<name\>Display as geometry\</name\>  
&nbsp;&nbsp;\<Region\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<LatLonAltBox\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<north\>52.480215\</north\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<south\>52.47978\</south\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<east\>13.353617999999999\</east\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<west\>13.35291\</west\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</LatLonAltBox\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<Lod\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<minLodPixels\>70\</minLodPixels\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<maxLodPixels\>-1\</maxLodPixels\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</Lod\>  
&nbsp;&nbsp;\</Region\>  
&nbsp;&nbsp;\<Link\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<href\>Gasometer\_2\_Tile\_0\_0\_geometry.kml\</href\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<viewRefreshMode\>onRequest\</viewRefreshMode\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<viewFormat/\>  
&nbsp;&nbsp;\</Link\>  
\</NetworkLink\>

\<NetworkLink\>  
&nbsp;&nbsp;\<name\>Display as extruded\</name\>  
&nbsp;&nbsp;\<Region\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<LatLonAltBox\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<north\>52.480215\</north\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<south\>52.47978\</south\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<east\>13.353617999999999\</east\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<west\>13.35291\</west\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</LatLonAltBox\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<Lod\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<minLodPixels\>20\</minLodPixels\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<maxLodPixels\>70\</maxLodPixels\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</Lod\>  
&nbsp;&nbsp;\</Region\>  
&nbsp;&nbsp;\<Link\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<href\>Gasometer\_2\_Tile\_0\_0\_extruded.kml\</href\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<viewRefreshMode\>onRequest\</viewRefreshMode\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<viewFormat/\>  
&nbsp;&nbsp;\</Link\>  
\</NetworkLink\>

&nbsp;&nbsp;And because Cesium don't support ScreenOverlay, the two part can't be integrated.The result is there are two layers in my Cesium viewer,which I think are LOD1 and LOD2.(I think maybe "Gasometer\_2\_Tile\_0\_0\_extruded.kml" represent LOD1 and "Gasometer\_2\_Tile\_0\_0\_geometry.kml" represent LOD2.)  
&nbsp;&nbsp;So what I actually want to know is how to integrate two or more LODs.If I can get your email address, I can show you the files I have loaded.  
&nbsp;&nbsp;Anyway,thanks for your help.

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [May 2, 2016, 3:12pm UTC](https://community.cesium.com/t/kml-unsupported-feature-screenoverlay/4046/4 "2016-05-02T15:12:04Z")

</div>

Ah okay. I think the problem is that Cesium doesn’t currently support KML regions for doing LOD. My suggestions would be to only add the extrueded geometry.

-Hannah
