<?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: Programmatically trigger infoWindow for KML layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-trigger-infowindow-for-kml-layer/m-p/641571#M59900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/popup.htm#show"&gt;popup.show()&lt;/A&gt;&lt;SPAN&gt;. You'll probably also want to use popup.setFeatures() to specify what is displayed in your popup when you show it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2012 16:29:02 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-07-17T16:29:02Z</dc:date>
    <item>
      <title>Programmatically trigger infoWindow for KML layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-trigger-infowindow-for-kml-layer/m-p/641570#M59899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map that I am creating as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var map;
var kmlLayers;
var initExtent = new esri.geometry.Extent({ "xmin": -126.95, "ymin": 21.08, "xmax": -60.24, "ymax": 49.86, "spatialReference": { "wkid": 4326} });
var popup = new esri.dijit.Popup(null, dojo.create("div"));

map = new esri.Map("map", { extent: esri.geometry.geographicToWebMercator(initExtent), "infoWindow": popup });&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
dojo.place(popup.domNode, map.root);

var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
map.addLayer(basemap);

var kmlTownshipUrl = 'http://myServer.net/KML/myKML.kml';
var newKMLLayer = new kmlLayer(kmlTownshipUrl);
newKMLLayer.addLayerToMap(map);
kmlLayers.push(newKMLLayer);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layer loads just fine, and when I click on it, I get the infoWindow with the approriate name and description fields from the &amp;lt;Placemark&amp;gt; in the KML. I then use my kmlLayers array to call the .hide() and .show() methods when a user checks/unchecks a box, and all works just fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is programmatically show the infoWindow as well, but as yet have had no success. In order to get the infoWindow to show properly, I have to actually click on it. Has anyone encountered this, and have a solution? Maybe I need to manage the infoWindow data independently of the KML? Any ideas would be helpful. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 16:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-trigger-infowindow-for-kml-layer/m-p/641570#M59899</guid>
      <dc:creator>ThomasLowry</dc:creator>
      <dc:date>2012-07-17T16:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically trigger infoWindow for KML layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-trigger-infowindow-for-kml-layer/m-p/641571#M59900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/popup.htm#show"&gt;popup.show()&lt;/A&gt;&lt;SPAN&gt;. You'll probably also want to use popup.setFeatures() to specify what is displayed in your popup when you show it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 16:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-trigger-infowindow-for-kml-layer/m-p/641571#M59900</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-07-17T16:29:02Z</dc:date>
    </item>
  </channel>
</rss>

