<?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: Insert the Identify Sample into the Index.mxml in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419771#M9855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the advice, Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think i give it up. I have to less knowhow to create this widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's what i've done:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
&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; xmlns:s="library://ns.adobe.com/flex/spark"
&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; xmlns:mx="library://ns.adobe.com/flex/mx"
&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; xmlns:esri="http://www.esri.com/2008/ags"
&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; xmlns:viewer="com.esri.viewer.*"&amp;gt;

 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; import com.esri.ags.Graphic;
&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.symbols.InfoSymbol;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.IdentifyParameters;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.IdentifyResult;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import mx.controls.Alert;
&amp;nbsp;&amp;nbsp; import mx.rpc.AsyncResponder;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; [Bindable]
&amp;nbsp;&amp;nbsp; private var lastIdentifyResultGraphic:Graphic;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function mapClickHandler(event:MapMouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; clickGraphicsLayer.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var identifyParams:IdentifyParameters = new IdentifyParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.tolerance = 3;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.width = myMap.width;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.height = myMap.height;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.geometry = event.mapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.mapExtent = myMap.extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.spatialReference = myMap.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var clickGraphic:Graphic = new Graphic(event.mapPoint, clickPtSym);
&amp;nbsp;&amp;nbsp;&amp;nbsp; clickGraphicsLayer.add(clickGraphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyTask.execute(identifyParams, new AsyncResponder(myResultFunction, myFaultFunction, clickGraphic));
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function myResultFunction(results:Array, clickGraphic:Graphic = null):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (results &amp;amp;&amp;amp; results.length &amp;gt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var result:IdentifyResult = results[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var resultGraphic:Graphic = result.feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (resultGraphic.geometry.type)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case Geometry.MAPPOINT:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultGraphic.symbol = smsIdentify;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case Geometry.POLYLINE:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultGraphic.symbol = slsIdentify;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case Geometry.POLYGON:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultGraphic.symbol = sfsIdentify;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&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; lastIdentifyResultGraphic = resultGraphic;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // update clickGraphic (from mouse click to returned feature)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clickGraphic.symbol = new InfoSymbol(); // use default renderer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clickGraphic.attributes = resultGraphic.attributes;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function myFaultFunction(error:Object, clickGraphic:Graphic = null):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show(String(error), "Identify Error");
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;
 
 
 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;!-- Symbol for where the user clicked --&amp;gt;
&amp;nbsp; &amp;lt;esri:SimpleMarkerSymbol id="clickPtSym"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color="0x000000"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alpha="0.5"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; size="12"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style="circle"/&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;!-- Symbol for Identify Result as Polyline --&amp;gt;
&amp;nbsp; &amp;lt;esri:SimpleLineSymbol id="slsIdentify"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="2"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alpha="1"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color="0x00FF00"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style="solid"/&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;!-- Symbol for Identify Result as Point --&amp;gt;
&amp;nbsp; &amp;lt;esri:SimpleMarkerSymbol id="smsIdentify"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color="0x00FF00"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; size="15"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style="diamond"/&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;!-- Symbol for Identify Result as Polygon --&amp;gt;
&amp;nbsp; &amp;lt;esri:SimpleFillSymbol id="sfsIdentify"/&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;!-- Identify Task --&amp;gt;
&amp;nbsp; &amp;lt;esri:IdentifyTask id="identifyTask"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concurrency="last"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer"/&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;
 
 
 &amp;lt;esri:Map&amp;nbsp; id="myMap"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapClick="mapClickHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; openHandCursorVisible="false"&amp;gt;
&amp;nbsp; &amp;lt;esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:WebMercatorExtent minlon="-120" minlat="30" maxlon="-100" maxlat="50"/&amp;gt;
&amp;nbsp; &amp;lt;/esri:extent&amp;gt;
&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:GraphicsLayer graphicProvider="{lastIdentifyResultGraphic}"/&amp;gt;
&amp;nbsp; &amp;lt;esri:GraphicsLayer id="clickGraphicsLayer"/&amp;gt;
 &amp;lt;/esri:Map&amp;gt;
 
&amp;lt;/viewer:BaseWidget&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here it is again, the "esri:map" part. How do i have to change it to run the widget?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:58:28 GMT</pubDate>
    <dc:creator>ThomasBuchmann1</dc:creator>
    <dc:date>2021-12-11T18:58:28Z</dc:date>
    <item>
      <title>Insert the Identify Sample into the Index.mxml</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419763#M9847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to add the IdentifySample from the sample applications to my Index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But where do i have to put the "map"-information from the identifysample?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what i have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; &amp;lt;esri:Map id="myMap"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapClick="mapClickHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; openHandCursorVisible="false"&amp;gt;
&amp;nbsp; &amp;lt;esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:WebMercatorExtent minlon="-120" minlat="30" maxlon="-100" maxlat="50"/&amp;gt;
&amp;nbsp; &amp;lt;/esri:extent&amp;gt;
&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:GraphicsLayer graphicProvider="{lastIdentifyResultGraphic}"/&amp;gt;
&amp;nbsp; &amp;lt;esri:GraphicsLayer id="clickGraphicsLayer"/&amp;gt;
 &amp;lt;/esri:Map&amp;gt;

 
 &amp;lt;viewer:ViewerContainer&amp;gt;
&amp;nbsp; &amp;lt;viewer:configManager&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;managers:ConfigManager/&amp;gt;
&amp;nbsp; &amp;lt;/viewer:configManager&amp;gt;
&amp;nbsp; &amp;lt;viewer:dataManager&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;managers:DataManager/&amp;gt;
&amp;nbsp; &amp;lt;/viewer:dataManager&amp;gt;
&amp;nbsp; &amp;lt;viewer:mapManager&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;managers:MapManager/&amp;gt;
&amp;nbsp; &amp;lt;/viewer:mapManager&amp;gt;
&amp;nbsp; &amp;lt;viewer:uiManager&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;managers:UIManager/&amp;gt;
&amp;nbsp; &amp;lt;/viewer:uiManager&amp;gt;
&amp;nbsp; &amp;lt;viewer:widgetManager&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;managers:WidgetManager/&amp;gt;
&amp;nbsp; &amp;lt;/viewer:widgetManager&amp;gt;
 &amp;lt;/viewer:ViewerContainer&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The part above (esri:Map) is from the identifysample, and the other (viewer:xxx) from the index.mxml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need your help, please...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thombu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 09:19:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419763#M9847</guid>
      <dc:creator>ThomasBuchmann1</dc:creator>
      <dc:date>2011-03-03T09:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Insert the Identify Sample into the Index.mxml</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419764#M9848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thomas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am wondering why you are trying this when there is an identify widget???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 11:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419764#M9848</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-03T11:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Insert the Identify Sample into the Index.mxml</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419765#M9849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;because i want an identify Tool that always can be used without activation by use of a widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you're right and i should try to solve the problem with a widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i want is just a simple Identify Tool like it is in the named sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-without a sperate window&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- and features are marked after the click&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do i create such a widget? Is it a good idea to try to bring the code from the sample into a widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 15:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419765#M9849</guid>
      <dc:creator>ThomasBuchmann1</dc:creator>
      <dc:date>2011-03-03T15:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert the Identify Sample into the Index.mxml</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419766#M9850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thomas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Are you interested in just one or two layers or are you wanting to be able to id everything in the map just no interface?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 16:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419766#M9850</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-03T16:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Insert the Identify Sample into the Index.mxml</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419767#M9851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to identify just one or two layers but no interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result should be shown in a "InfoPopUp" as in the IdentifySample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ID-Tool must not necessarily always be available. It would also be nice to start it with a Icon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 17:18:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419767#M9851</guid>
      <dc:creator>ThomasBuchmann1</dc:creator>
      <dc:date>2011-03-03T17:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Insert the Identify Sample into the Index.mxml</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419768#M9852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thomas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Seems how your requirements are very specific I would go back to integrating the Identify Sample. You&amp;nbsp; should probably start with this tutorial video &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/gallery/video/arcgis-api-for-flex/details?entryID=870F152C-1422-2418-A010-7C82711FE22F"&gt;http://resources.arcgis.com/gallery/video/arcgis-api-for-flex/details?entryID=870F152C-1422-2418-A010-7C82711FE22F&lt;/A&gt;&lt;SPAN&gt; on how to create a widget. Each widget has access to the map component and you can have widgets that have no UI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 18:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419768#M9852</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-03T18:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Insert the Identify Sample into the Index.mxml</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419769#M9853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Seems how your requirements are very specific I would go back to integrating the Identify Sample.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you mean? integrating the IdentifySample into the Index.mxml or into a widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the link. I've already wachted it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new in Flex so i don't think that i'm able to create a widget from zero.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to easily integrate the applications-code into a widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 18:51:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419769#M9853</guid>
      <dc:creator>ThomasBuchmann1</dc:creator>
      <dc:date>2011-03-03T18:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Insert the Identify Sample into the Index.mxml</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419770#M9854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thomas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Going the New Widget route would be best. Yes you could take a majority of the sample code and use that in a widget, but you would be talking about creating a new widget like the video discusses. If you opt against that route than you need to look att adding the identify sample code to the MapManager not the index.mxml.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 18:57:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419770#M9854</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-03T18:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Insert the Identify Sample into the Index.mxml</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419771#M9855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the advice, Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think i give it up. I have to less knowhow to create this widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's what i've done:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
&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; xmlns:s="library://ns.adobe.com/flex/spark"
&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; xmlns:mx="library://ns.adobe.com/flex/mx"
&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; xmlns:esri="http://www.esri.com/2008/ags"
&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; xmlns:viewer="com.esri.viewer.*"&amp;gt;

 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; import com.esri.ags.Graphic;
&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.symbols.InfoSymbol;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.IdentifyParameters;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.IdentifyResult;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import mx.controls.Alert;
&amp;nbsp;&amp;nbsp; import mx.rpc.AsyncResponder;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; [Bindable]
&amp;nbsp;&amp;nbsp; private var lastIdentifyResultGraphic:Graphic;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function mapClickHandler(event:MapMouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; clickGraphicsLayer.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var identifyParams:IdentifyParameters = new IdentifyParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.tolerance = 3;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.width = myMap.width;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.height = myMap.height;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.geometry = event.mapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.mapExtent = myMap.extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.spatialReference = myMap.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var clickGraphic:Graphic = new Graphic(event.mapPoint, clickPtSym);
&amp;nbsp;&amp;nbsp;&amp;nbsp; clickGraphicsLayer.add(clickGraphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyTask.execute(identifyParams, new AsyncResponder(myResultFunction, myFaultFunction, clickGraphic));
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function myResultFunction(results:Array, clickGraphic:Graphic = null):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (results &amp;amp;&amp;amp; results.length &amp;gt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var result:IdentifyResult = results[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var resultGraphic:Graphic = result.feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (resultGraphic.geometry.type)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case Geometry.MAPPOINT:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultGraphic.symbol = smsIdentify;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case Geometry.POLYLINE:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultGraphic.symbol = slsIdentify;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case Geometry.POLYGON:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultGraphic.symbol = sfsIdentify;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&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; lastIdentifyResultGraphic = resultGraphic;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // update clickGraphic (from mouse click to returned feature)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clickGraphic.symbol = new InfoSymbol(); // use default renderer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clickGraphic.attributes = resultGraphic.attributes;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function myFaultFunction(error:Object, clickGraphic:Graphic = null):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show(String(error), "Identify Error");
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;
 
 
 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;!-- Symbol for where the user clicked --&amp;gt;
&amp;nbsp; &amp;lt;esri:SimpleMarkerSymbol id="clickPtSym"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color="0x000000"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alpha="0.5"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; size="12"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style="circle"/&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;!-- Symbol for Identify Result as Polyline --&amp;gt;
&amp;nbsp; &amp;lt;esri:SimpleLineSymbol id="slsIdentify"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="2"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alpha="1"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color="0x00FF00"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style="solid"/&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;!-- Symbol for Identify Result as Point --&amp;gt;
&amp;nbsp; &amp;lt;esri:SimpleMarkerSymbol id="smsIdentify"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color="0x00FF00"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; size="15"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style="diamond"/&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;!-- Symbol for Identify Result as Polygon --&amp;gt;
&amp;nbsp; &amp;lt;esri:SimpleFillSymbol id="sfsIdentify"/&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;!-- Identify Task --&amp;gt;
&amp;nbsp; &amp;lt;esri:IdentifyTask id="identifyTask"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concurrency="last"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer"/&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;
 
 
 &amp;lt;esri:Map&amp;nbsp; id="myMap"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapClick="mapClickHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; openHandCursorVisible="false"&amp;gt;
&amp;nbsp; &amp;lt;esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:WebMercatorExtent minlon="-120" minlat="30" maxlon="-100" maxlat="50"/&amp;gt;
&amp;nbsp; &amp;lt;/esri:extent&amp;gt;
&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:GraphicsLayer graphicProvider="{lastIdentifyResultGraphic}"/&amp;gt;
&amp;nbsp; &amp;lt;esri:GraphicsLayer id="clickGraphicsLayer"/&amp;gt;
 &amp;lt;/esri:Map&amp;gt;
 
&amp;lt;/viewer:BaseWidget&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here it is again, the "esri:map" part. How do i have to change it to run the widget?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:58:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/insert-the-identify-sample-into-the-index-mxml/m-p/419771#M9855</guid>
      <dc:creator>ThomasBuchmann1</dc:creator>
      <dc:date>2021-12-11T18:58:28Z</dc:date>
    </item>
  </channel>
</rss>

