<?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: How can I get the description from a layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660320#M61634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Robert,&lt;/P&gt;&lt;P&gt;But I want to know anything else:&lt;BR /&gt;Suppose that I click on map, right? So, the map is composed by little rectangs [0,1,2 ... sublayers or really, satellital images] at respective places. How can I get what layer (or rectangle of satellital image) I am clicking?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sorry, if this question should not be here, I will republish it again)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2016 20:25:29 GMT</pubDate>
    <dc:creator>RolandoFlorez</dc:creator>
    <dc:date>2016-12-06T20:25:29Z</dc:date>
    <item>
      <title>How can I get the description from a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660318#M61632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this layers (Series of images)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/276793_impr2.png" style="width: 620px; height: 356px;" /&gt;&lt;/P&gt;&lt;P&gt;inside each one, there are&amp;nbsp;this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/276792_impr2.png" style="width: 620px; height: 359px;" /&gt;&lt;/P&gt;&lt;P&gt;I need this information (now empty) to show in a infowindow. How can access to this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 01:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660318#M61632</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-12-06T01:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the description from a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660319#M61633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rolando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You can get this date by getting the description property of a FeatureLayer:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#description" title="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#description"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript 3.18 | Description&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or you can use esriRequest to get this as well.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 03:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660319#M61633</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-06T03:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the description from a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660320#M61634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Robert,&lt;/P&gt;&lt;P&gt;But I want to know anything else:&lt;BR /&gt;Suppose that I click on map, right? So, the map is composed by little rectangs [0,1,2 ... sublayers or really, satellital images] at respective places. How can I get what layer (or rectangle of satellital image) I am clicking?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sorry, if this question should not be here, I will republish it again)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 20:25:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660320#M61634</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-12-06T20:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the description from a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660321#M61635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rolando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;OK that is a very different question then. You would use the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/identifytask-amd.html"&gt;IdentifyTask&lt;/A&gt; for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 20:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660321#M61635</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-06T20:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the description from a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660322#M61636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rober,&amp;nbsp;It was really helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 14:40:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660322#M61636</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-12-09T14:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the description from a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660323#M61637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;BR /&gt;Can you explain me this &lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=find_popup"&gt;example&lt;/A&gt;?&lt;BR /&gt;At this lines:&lt;BR /&gt;&lt;STRONG&gt;// InfoWindow expects an array of features from each deferred&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// object that you pass. If the response from the task execution&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// above is not an array of features, then you need to add a callback&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// like the one above to post-process the response and return an&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// array of features.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;map.infoWindow.setFeatures([deferred]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, it has comments but I don't understand.&lt;BR /&gt;Instead,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var deferred = identifyTask&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;.execute(identifyParams)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;.addCallback(function (response) {..} , &lt;BR /&gt;I'm making,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;identifyTask.execute(identifyParams, function (response) {..} .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead .setFeatures([deferred]), I'm sending .setFeatures(feature), &lt;STRONG&gt;where feature = response[0].feature, and is saving the infoTemplate.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When&amp;nbsp;I click the map, the infoWindow content is 'No information', Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 22:49:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660323#M61637</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-12-26T22:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the description from a layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660324#M61638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rolando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The answer is simple a deferred like the identify task returns an array of graphics and the map.infoWindow.setFeatures ia expecting an array of &lt;SPAN&gt;graphics.&lt;/SPAN&gt;&amp;nbsp;So you just have to make an array of&amp;nbsp;&lt;SPAN&gt;graphics out of your graphics response&amp;nbsp;and not a single graphic like you are now "&lt;SPAN style="background-color: #ffffff;"&gt;setFeatures(feature)".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 13:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-description-from-a-layer/m-p/660324#M61638</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-27T13:45:25Z</dc:date>
    </item>
  </channel>
</rss>

