AnsweredAssumed Answered

cannot visualize kml in web app

Question asked by anggabayum on Jul 19, 2017
Latest reply on Jul 19, 2017 by anggabayum

Hi,

 

I'm working with arcgis web app right now.

in that web app i want to visualize data from KML url, but unfortunately it failed.

the steps that i did is

1. I successfully created web map in arcgis online and add KML web map layer and save it as gsmap.

kml in web map

2. Then i go to the content and select gsmap and create a web app -> using template and created a new web app, but i cannot see the layer from KML

web app kml

i did quick investigation about the problem and found this problem, width of image source is 0 px.

image error width

if i remove the width or change the value upper than 0 it worked

change image width manual

 

Here is the kml file

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
     <name>map_rain.kml</name>
     <Folder>
          <name>GSMaP Passage Data</name>
          <Folder>
               <name>map_rain</name>
               <Folder>
                    <name>Rain</name>
                    <Style>
                         <ListStyle>
                              <listItemType>checkHideChildren</listItemType>
                              <bgColor>00ffffff</bgColor>
                              <maxSnippetLines>2</maxSnippetLines>
                         </ListStyle>
                    </Style>

                    <GroundOverlay>
                         <Icon>
                              <href>map_rain.png</href>
                         </Icon>
                         <altitude>100000</altitude>
                         <altitudeMode>absolute</altitudeMode>
                         <LatLonBox>
                              <north>60</north>
                              <south>-60</south>
                              <east>200</east>
                              <west>-160</west>
                         </LatLonBox>
                    </GroundOverlay>
                   
               </Folder>
              
          </Folder>
     </Folder>
</Document>
</kml>

 

and this is the image

image kml

 

Really appreciate of your help.

Outcomes