<?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: Raster Identify Flex Viewer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228963#M5402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have a version 10 image service, you can use the ImageServiceIdentifyTask.html:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/ImageServiceIdentifyTask.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/ImageServiceIdentifyTask.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Nov 2010 17:07:43 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2010-11-17T17:07:43Z</dc:date>
    <item>
      <title>Raster Identify Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228961#M5400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just what the title says, whats the easiest way to identify a pixel value for a Raster layer in the Flex Viewer. I looked through the REST API and couldnt find anything .... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 13:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228961#M5400</guid>
      <dc:creator>PremRadhakrishnan</dc:creator>
      <dc:date>2010-11-15T13:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Identify Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228962#M5401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is exactly what I've been looking for, as well. Seems like using ArcGISImageServiceLayer is close, but I don't see anything about returning a pixel value in the API. I've had slight success using IdentifyTask on a dynamic service, but I'm not sure how to isolate just the pixel value. The identify task wants to return the entire table. And unfortunately, I'm not good enough yet to trying extending/modifying the IdentifyTask Class to any great degree. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To further complicate things, I'd like to click once and return 4 or 5 pixel values from layers of rasters. This, however, is step two. Step one is just getting Flex to return a pixel value from a mouse click. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 14:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228962#M5401</guid>
      <dc:creator>MattWilliams</dc:creator>
      <dc:date>2010-11-17T14:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Identify Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228963#M5402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have a version 10 image service, you can use the ImageServiceIdentifyTask.html:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/ImageServiceIdentifyTask.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/ImageServiceIdentifyTask.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 17:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228963#M5402</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-11-17T17:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Identify Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228964#M5403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I've tried but just am obviously missing something here. I still don't quite grasp how this is supposed to work. Do you obtain the pixel value by using the "value" property from IdentifyResult? I'm using a Raster Dataset Image Service, by the way, so I can't use the "properties" property which is only usable from a Mosaic Dataset. Anyways... here's my code. A little advice would be greatly appreciated. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags"&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import com.esri.ags.events.ImageServiceIdentifyEvent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.events.MapMouseEvent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.geometry.Geometry;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.ImageServiceIdentifyParameters;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.ImageServiceIdentifyResult;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import mx.controls.Text;
&amp;nbsp;&amp;nbsp; import mx.rpc.AsyncResponder;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function onMapClick(event:MapMouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; imgIdentifyTask.url = "http://myservername/ArcGIS/rest/services/test4/ImageServer";
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var IDParams:ImageServiceIdentifyParameters = new ImageServiceIdentifyParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; IDParams.geometry = event.mapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; imgIdentifyTask.execute(IDParams);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function imgExecuteComplete(event:ImageServiceIdentifyEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pixelValue:Label = event.identifyResult.value as Label
&amp;nbsp;&amp;nbsp;&amp;nbsp; idImageLabel.addChild(pixelValue); 
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;
 
 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:ImageServiceIdentifyTask id="imgIdentifyTask" executeComplete="imgExecuteComplete(event)"/&amp;gt;
&amp;nbsp; 
 &amp;lt;/fx:Declarations&amp;gt;
 
 &amp;lt;esri:Map id="myMap" extent="{new Extent(-10955781, 4374995, -8825382, 5549067)}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapClick="onMapClick(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; openHandCursorVisible="false"&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/&amp;gt;
&amp;nbsp; &amp;lt;esri:ArcGISImageServiceLayer url="http://myservername/ArcGIS/rest/services/test4/ImageServer"/&amp;gt;
&amp;nbsp; 
 &amp;lt;/esri:Map&amp;gt;
 
 &amp;lt;s:Label id="idImageLabel" text="{}" x="80" y="50" width="150"/&amp;gt;
 
&amp;lt;/s:Application&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228964#M5403</guid>
      <dc:creator>MattWilliams</dc:creator>
      <dc:date>2021-12-11T11:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Identify Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228965#M5404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe so, but I'm not very familiar with this so your best bet may be to contact Esri Support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the REST docs at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/isidentify.html"&gt;http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/isidentify.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;"The result of this operation includes the pixel value of the mosaic for a given mosaic rule, a resolution (pixel size), and a set of catalog items that overlap the given geometry."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 19:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228965#M5404</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-11-18T19:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Identify Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228966#M5405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If anyone cares and for sake of posterity, I have this working on a rudimentary level. I still need to format the output, but I am getting pixels values. What I had to do is set up a Mosaic Dataset in a geodatabase. In my case I added two rasters that overlay each other. I then set up a Image Service in ArcGIS Server 10 that published the Mosaic Dataset. I used all the defaults, except the option of "Allowed compression methods", I unchecked JPEG. And used the code below. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DISCLAIMER: Don't use this for &lt;/SPAN&gt;&lt;STRONG&gt;displaying&lt;/STRONG&gt;&lt;SPAN&gt; overlaying rasters. I would stick with publishing individual Raster Datasets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx"&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import com.esri.ags.events.ImageServiceIdentifyEvent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.events.MapMouseEvent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.geometry.Geometry;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.ImageServiceIdentifyParameters;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.ImageServiceIdentifyResult;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import mx.controls.Label;
&amp;nbsp;&amp;nbsp; import mx.controls.Text;
&amp;nbsp;&amp;nbsp; import mx.core.IUIComponent;
&amp;nbsp;&amp;nbsp; import mx.rpc.AsyncResponder;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function onMapClick(event:MapMouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; imgIdentifyTask.url = "http://yourservername/ArcGIS/rest/services/FlexDev/lf_mosaic/ImageServer";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var IDParams:ImageServiceIdentifyParameters = new ImageServiceIdentifyParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; IDParams.geometry = event.mapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; imgIdentifyTask.execute(IDParams);
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function imgExecuteComplete(event:ImageServiceIdentifyEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pixelValue:Array = event.identifyResult.properties.Values as Array;
&amp;nbsp;&amp;nbsp;&amp;nbsp; idImageLabel.text = pixelValue.toString();
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;
 
 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:ImageServiceIdentifyTask id="imgIdentifyTask" executeComplete="imgExecuteComplete(event)"/&amp;gt;
&amp;nbsp; 
 &amp;lt;/fx:Declarations&amp;gt;
 
 &amp;lt;esri:Map id="myMap" extent="{new Extent(-10955781, 4374995, -8825382, 5549067)}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; openHandCursorVisible="false" mapClick="onMapClick(event)"&amp;gt; 
&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:ArcGISImageServiceLayer url="http://yourservername/ArcGIS/rest/services/FlexDev/lf_mosaic/ImageServer"/&amp;gt;
&amp;nbsp; 
 &amp;lt;/esri:Map&amp;gt;
 
 &amp;lt;s:HGroup&amp;nbsp; x="80" y="50" width="150" color="#245EEE"&amp;gt;
 &amp;lt;s:Label id="idImageLabel" text="PIXEL VALUES FROM CLICK" fontWeight="bold" fontSize="24" color="#000000"/&amp;gt;
 &amp;lt;/s:HGroup&amp;gt;
&amp;lt;/s:Application&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228966#M5405</guid>
      <dc:creator>MattWilliams</dc:creator>
      <dc:date>2021-12-11T11:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Identify Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228967#M5406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cool Will have to wait till we switch over to 10 to test it out. Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 19:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228967#M5406</guid>
      <dc:creator>PremRadhakrishnan</dc:creator>
      <dc:date>2010-11-19T19:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Identify Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228968#M5407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If anyone cares and for sake of posterity, I have this working on a rudimentary level. I still need to format the output, but I am getting pixels values. What I had to do is set up a Mosaic Dataset in a geodatabase. In my case I added two rasters that overlay each other. I then set up a Image Service in ArcGIS Server 10 that published the Mosaic Dataset. I used all the defaults, except the option of "Allowed compression methods", I unchecked JPEG. And used the code below. &lt;BR /&gt;&lt;BR /&gt;DISCLAIMER: Don't use this for &lt;STRONG&gt;displaying&lt;/STRONG&gt; overlaying rasters. I would stick with publishing individual Raster Datasets.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx"&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import com.esri.ags.events.ImageServiceIdentifyEvent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.events.MapMouseEvent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.geometry.Geometry;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.ImageServiceIdentifyParameters;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.ImageServiceIdentifyResult;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import mx.controls.Label;
&amp;nbsp;&amp;nbsp; import mx.controls.Text;
&amp;nbsp;&amp;nbsp; import mx.core.IUIComponent;
&amp;nbsp;&amp;nbsp; import mx.rpc.AsyncResponder;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function onMapClick(event:MapMouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; imgIdentifyTask.url = "http://yourservername/ArcGIS/rest/services/FlexDev/lf_mosaic/ImageServer";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var IDParams:ImageServiceIdentifyParameters = new ImageServiceIdentifyParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; IDParams.geometry = event.mapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; imgIdentifyTask.execute(IDParams);
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function imgExecuteComplete(event:ImageServiceIdentifyEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pixelValue:Array = event.identifyResult.properties.Values as Array;
&amp;nbsp;&amp;nbsp;&amp;nbsp; idImageLabel.text = pixelValue.toString();
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;
 
 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:ImageServiceIdentifyTask id="imgIdentifyTask" executeComplete="imgExecuteComplete(event)"/&amp;gt;
&amp;nbsp; 
 &amp;lt;/fx:Declarations&amp;gt;
 
 &amp;lt;esri:Map id="myMap" extent="{new Extent(-10955781, 4374995, -8825382, 5549067)}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; openHandCursorVisible="false" mapClick="onMapClick(event)"&amp;gt; 
&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:ArcGISImageServiceLayer url="http://yourservername/ArcGIS/rest/services/FlexDev/lf_mosaic/ImageServer"/&amp;gt;
&amp;nbsp; 
 &amp;lt;/esri:Map&amp;gt;
 
 &amp;lt;s:HGroup&amp;nbsp; x="80" y="50" width="150" color="#245EEE"&amp;gt;
 &amp;lt;s:Label id="idImageLabel" text="PIXEL VALUES FROM CLICK" fontWeight="bold" fontSize="24" color="#000000"/&amp;gt;
 &amp;lt;/s:HGroup&amp;gt;
&amp;lt;/s:Application&amp;gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody point me to the right direction of how to use the above code in Flexviewer 2.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/raster-identify-flex-viewer/m-p/228968#M5407</guid>
      <dc:creator>haThach</dc:creator>
      <dc:date>2021-12-11T11:07:55Z</dc:date>
    </item>
  </channel>
</rss>

