AnsweredAssumed Answered

how to add a photoOverlay to scene

Question asked by sandia_dedia on Mar 18, 2016

Hi,

I am trying to add a kmz photoOverlay (vertical standing image) to a scene but I just cant make it work. Does anybody have a simple working example?  thanks.

 

-This is how I try to add the layer (this works with groundOVerlays but not photoOVerlays):

KmlLayer kmlLayer = new KmlLayer(new Uri(kmlpath));

myScene.Scene.Layers.Add(kmlLayer);

 

This is the kml I am trying to add

<?xml version="2.2" encoding="UTF-8"?><kml xmlns="http://www.opengis.net/kml/2.2"> 

   <PhotoOverlay id="ff">

    <Icon><href>http://developers.google.com/kml/documentation/images/etna.jpg</href></Icon>   

   

    <ViewVolume>

      <leftFov>-89.8176</leftFov>

      <rightFov>89.8176</rightFov>

      <bottomFov>-89.748</bottomFov>

      <topFov>89.748</topFov>

      <near>5000.9512</near>

    </ViewVolume>

   

    <Point>

      <coordinates>-116.8,33.1,2000</coordinates>

    </Point>

   

  </PhotoOverlay>

</kml>

Outcomes