<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: KML layer with gx:LatLonQuad (Google Extensions) not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1604052#M86853</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;: Thanks a lot. It works great!&lt;/P&gt;&lt;P&gt;One follow up though: It takes quite a time until the pngs show up on the map. Is there a possibility to show the user a "loading" or similar? Or are there events that help me to implement such a loading myself?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 04:36:46 GMT</pubDate>
    <dc:creator>SokoFromNZ</dc:creator>
    <dc:date>2025-04-09T04:36:46Z</dc:date>
    <item>
      <title>KML layer with gx:LatLonQuad (Google Extensions) not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1603201#M86832</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to statically display a png with transparency as groundoverlay on the map. I know the positions of 4 corners of the png. I use a KML layer to display the png and &amp;lt;gx:LatLonQuad&amp;gt; to position the png.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;kml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns="http://www.opengis.net/kml/2.2"&amp;gt;
  &amp;lt;GroundOverlay&amp;gt;
    &amp;lt;name&amp;gt;00011&amp;lt;/name&amp;gt;
    &amp;lt;color&amp;gt;ffffffff&amp;lt;/color&amp;gt;
    &amp;lt;drawOrder&amp;gt;1&amp;lt;/drawOrder&amp;gt;
    &amp;lt;Icon&amp;gt;
      &amp;lt;href&amp;gt;00011.png&amp;lt;/href&amp;gt;
    &amp;lt;/Icon&amp;gt;
    &amp;lt;gx:LatLonQuad&amp;gt;
      &amp;lt;coordinates&amp;gt;6.470538936388478,51.76457680491465 6.467556177491324,51.76654569164255 6.464917693895138,51.76500669726339 6.4679004670093825,51.76303787693469&amp;lt;/coordinates&amp;gt;
    &amp;lt;/gx:LatLonQuad&amp;gt;
  &amp;lt;/GroundOverlay&amp;gt;
&amp;lt;/kml&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine when I load this KML in my .NET apps using the ArcGIS .NET Runtime.&lt;/P&gt;&lt;P&gt;But the JS Runtime runs into troubles.&lt;/P&gt;&lt;P&gt;When I remove the Google Extension and use &amp;lt;LatLonBox&amp;gt; it works and the PNG is shown:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;kml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.opengis.net/kml/2.2"&amp;gt;
  &amp;lt;GroundOverlay&amp;gt;
    &amp;lt;name&amp;gt;00011&amp;lt;/name&amp;gt;
    &amp;lt;color&amp;gt;ffffffff&amp;lt;/color&amp;gt;
    &amp;lt;drawOrder&amp;gt;1&amp;lt;/drawOrder&amp;gt;
    &amp;lt;Icon&amp;gt;
      &amp;lt;href&amp;gt;00011.png&amp;lt;/href&amp;gt;
    &amp;lt;/Icon&amp;gt;
    &amp;lt;LatLonBox&amp;gt;
      &amp;lt;north&amp;gt;51.76654569164255&amp;lt;/north&amp;gt;
      &amp;lt;south&amp;gt;51.76303787693469&amp;lt;/south&amp;gt;
      &amp;lt;east&amp;gt;6.470538936388478&amp;lt;/east&amp;gt;
      &amp;lt;west&amp;gt;6.464917693895138&amp;lt;/west&amp;gt;
	  &amp;lt;rotation&amp;gt;54.324553&amp;lt;/rotation&amp;gt;
    &amp;lt;/LatLonBox&amp;gt;
  &amp;lt;/GroundOverlay&amp;gt;
&amp;lt;/kml&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I'm new to JS Maps SDK I'm not quite sure how to approach this issue. I see the following options:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get the gx-Google-Extensions working&lt;/LI&gt;&lt;LI&gt;Recalculate the gx:LatLongQuad to &amp;lt;LatLonBox&amp;gt;&lt;/LI&gt;&lt;LI&gt;Use a different method (no KML at all) to show the PNG as a groundoverlay&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would prefer option 1 as our service already delivers the KML for the .NET apps like this. Is there a way?&lt;BR /&gt;&lt;BR /&gt;I've tried option 2, but it is not simple math. And it seems the original coordinates are not rectangular...&lt;/P&gt;&lt;P&gt;As for option 3 I've found&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html" target="_self"&gt;ImageryLayer&lt;/A&gt;&amp;nbsp;which seems way too complicated to just show one PNG over the map.&lt;/P&gt;&lt;P&gt;I hope you guys can help.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Soko&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 08:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1603201#M86832</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2025-04-07T08:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: KML layer with gx:LatLonQuad (Google Extensions) not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1603219#M86834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/591987"&gt;@SokoFromNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm not a KML expert really, so can't chime in why the gx extension isn't working or if it's supported in the JS SDK, however, we do have a layer type that is designed just for this purpose.&lt;/P&gt;&lt;P&gt;Take a look at&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html" target="_self"&gt;MediaLayer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 10:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1603219#M86834</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-04-07T10:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: KML layer with gx:LatLonQuad (Google Extensions) not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1603224#M86835</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;: Thanks, I will give it a try.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 11:02:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1603224#M86835</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2025-04-07T11:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: KML layer with gx:LatLonQuad (Google Extensions) not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1604052#M86853</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;: Thanks a lot. It works great!&lt;/P&gt;&lt;P&gt;One follow up though: It takes quite a time until the pngs show up on the map. Is there a possibility to show the user a "loading" or similar? Or are there events that help me to implement such a loading myself?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 04:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1604052#M86853</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2025-04-09T04:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: KML layer with gx:LatLonQuad (Google Extensions) not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1604267#M86860</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/591987"&gt;@SokoFromNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;There isn't a build in loading indicator but you can use the &lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/#whenLayerView" target="_self"&gt;whenLayerView&lt;/A&gt; method on the Map component or the MapView to know when the layer view is ready.&amp;nbsp; There is an example of using it in this sample:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-medialayer-control-points/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-medialayer-control-points/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 17:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/kml-layer-with-gx-latlonquad-google-extensions-not/m-p/1604267#M86860</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-04-09T17:18:56Z</dc:date>
    </item>
  </channel>
</rss>

