<?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 World Imagery Click to Identify - how is this done? samples? configurable? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/world-imagery-click-to-identify-how-is-this-done/m-p/564671#M52699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can click and get metadata when the layer is added in ArcMap, and when using the Showcase Imagery Viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The "view source" in the Imagery window seems to refer to a query task, but it was built with API 2.1 and I am wondering if there is a better way: the ImageServiceIdentify? No sample uses this, I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a simple sample or a way to configure this capability in one of the online application templates, to ArcGIS Explorer Online, or to ArcGIS Explorer desktop? All I want to do it put an imagery file on the map, click, and get source and date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[this is a cross post from the ArcGIS Online forum, but it might be a better fit here.]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2012 19:27:28 GMT</pubDate>
    <dc:creator>HarryBowman</dc:creator>
    <dc:date>2012-07-30T19:27:28Z</dc:date>
    <item>
      <title>World Imagery Click to Identify - how is this done? samples? configurable?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/world-imagery-click-to-identify-how-is-this-done/m-p/564671#M52699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can click and get metadata when the layer is added in ArcMap, and when using the Showcase Imagery Viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The "view source" in the Imagery window seems to refer to a query task, but it was built with API 2.1 and I am wondering if there is a better way: the ImageServiceIdentify? No sample uses this, I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a simple sample or a way to configure this capability in one of the online application templates, to ArcGIS Explorer Online, or to ArcGIS Explorer desktop? All I want to do it put an imagery file on the map, click, and get source and date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[this is a cross post from the ArcGIS Online forum, but it might be a better fit here.]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 19:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/world-imagery-click-to-identify-how-is-this-done/m-p/564671#M52699</guid>
      <dc:creator>HarryBowman</dc:creator>
      <dc:date>2012-07-30T19:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: World Imagery Click to Identify - how is this done? samples? configurable?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/world-imagery-click-to-identify-how-is-this-done/m-p/564672#M52700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post a link to the showcase imagery viewer that you're referring to?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's using a query task an assumption is that there is a polygon layer representing metadata about each image (ie, they are serving the Source and Date as attributes in a polygon layer, with the polygons representing the extent of each image). Clicking on the "image" is actually running a query task against the polygon layer, and returning simple attributes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 22:36:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/world-imagery-click-to-identify-how-is-this-done/m-p/564672#M52700</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-07-30T22:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: World Imagery Click to Identify - how is this done? samples? configurable?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/world-imagery-click-to-identify-how-is-this-done/m-p/564673#M52701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you post a link to the showcase imagery viewer that you're referring to?&lt;BR /&gt;&lt;BR /&gt;If it's using a query task an assumption is that there is a polygon layer representing metadata about each image (ie, they are serving the Source and Date as attributes in a polygon layer, with the polygons representing the extent of each image). Clicking on the "image" is actually running a query task against the polygon layer, and returning simple attributes.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that is what it might be doing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/showcase/"&gt;http://www.arcgis.com/showcase/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 00:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/world-imagery-click-to-identify-how-is-this-done/m-p/564673#M52701</guid>
      <dc:creator>HarryBowman</dc:creator>
      <dc:date>2012-07-31T00:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: World Imagery Click to Identify - how is this done? samples? configurable?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/world-imagery-click-to-identify-how-is-this-done/m-p/564674#M52702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Harry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code for the Identify button says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;a id="identifyButton" class="map_button identify left" onClick="JavaScript:activateImageQuery()...&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, activateImageQuery is a function (not an ArcGIS command). You can find the function in the JS file at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/showcase/javascript/main.js" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/showcase/javascript/main.js&lt;BR /&gt;&lt;BR /&gt;T&lt;/A&gt;&lt;SPAN&gt;his function sets up the query which will run when you click on the map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;queryImage.execute(query, dojo.hitch(this,showImageQueryFeatures, query));&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When this query executes, it calls the function showImageQueryFeatures, which is sent the results of the query as a featureSet. The first feature in this set is then sent to the function &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;showImageQueryFeature:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function showImageQueryFeature(feature) {&amp;nbsp; var attributes = { name: feature.attributes.NICE_NAME,&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; nice_desc: feature.attributes.NICE_DESC,&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; src_desc: feature.attributes.SRC_DESC,&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; resolution: feature.attributes.SRC_RES,&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; accuracy: feature.attributes.SRC_ACC,&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; date: feature.attributes.SRC_DATE&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; feature.setAttributes(attributes);&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.setInfoTemplate(queryImageTemplate);&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(feature);&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(the forum editor keeps messing up the code - the point is that it's retrieving the attributes from the feature)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So basically, there is a polygon layer (invisible) sitting on top of the imagery, and this is what is being queried when you click on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 00:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/world-imagery-click-to-identify-how-is-this-done/m-p/564674#M52702</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-07-31T00:28:18Z</dc:date>
    </item>
  </channel>
</rss>

