<?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 Highlight an identify result on the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-an-identify-result-on-the-map/m-p/187595#M17423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand arcgis desktop has a feature whereby you can click on a element and it will be highlighted on the map. We're trying to do something similar ... a user does an Identify search and then gets a set of results, and later can click on one to get a highlight appearing on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like the class "IdentifyResult" has a "feature" attribute which is a "Graphic" type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So we should be able to do something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.graphics.add(result.feature)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;no?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'm having problems getting this to produce anything ... anyone have any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Nov 2010 14:19:22 GMT</pubDate>
    <dc:creator>JamesB</dc:creator>
    <dc:date>2010-11-18T14:19:22Z</dc:date>
    <item>
      <title>Highlight an identify result on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-an-identify-result-on-the-map/m-p/187595#M17423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand arcgis desktop has a feature whereby you can click on a element and it will be highlighted on the map. We're trying to do something similar ... a user does an Identify search and then gets a set of results, and later can click on one to get a highlight appearing on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like the class "IdentifyResult" has a "feature" attribute which is a "Graphic" type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So we should be able to do something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.graphics.add(result.feature)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;no?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'm having problems getting this to produce anything ... anyone have any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 14:19:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-an-identify-result-on-the-map/m-p/187595#M17423</guid>
      <dc:creator>JamesB</dc:creator>
      <dc:date>2010-11-18T14:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight an identify result on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-an-identify-result-on-the-map/m-p/187596#M17424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;sure, i have done something like this. here is the function that shows the feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; function showFeature(r) {
&amp;nbsp;&amp;nbsp; // r is the results set from the identifyResults
&amp;nbsp;&amp;nbsp; var symbol;
&amp;nbsp;&amp;nbsp; var feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; clearFeatures();//clear any old symbols
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; for(var i=0;i&amp;lt;r.length;i++){// loop thru the list of items adding a symbol for each item
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature=r&lt;I&gt;.feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(feature.geometry.type == 'point'){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_DIAMOND, 14,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new dojo.Color(MARK_OUTLINE_COLOR), 2), new dojo.Color(MARK_FILL_COLOR));
&amp;nbsp;&amp;nbsp;&amp;nbsp; }else{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NULL, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color(MARK_OUTLINE_COLOR), 2));
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.setSymbol(symbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(feature);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; curDisplayGraphic = feature;// set the geometry &amp;amp; attributes to the selected feature. (or the last item in a group of items)
&amp;nbsp; }
&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so, if the user clicks on an item, and there are more then 1 result returned from the identify, it will loop thru and either put a symbol on the item if it is a point, or outline/fill a polygon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-an-identify-result-on-the-map/m-p/187596#M17424</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2021-12-11T09:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight an identify result on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-an-identify-result-on-the-map/m-p/187597#M17425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, have managed to work in a solution now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 09:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-an-identify-result-on-the-map/m-p/187597#M17425</guid>
      <dc:creator>JamesB</dc:creator>
      <dc:date>2010-11-23T09:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight an identify result on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-an-identify-result-on-the-map/m-p/187598#M17426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;um.... im not sure i understand what you mean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my code when an identify happens, the call back is triggered, inside the callback i run this function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it takes the results (r) and loops thru them, then based on the item feature, puts a symbol for each feature in the result set on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;did i miss read your original question? i thought that is what you wanted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 14:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-an-identify-result-on-the-map/m-p/187598#M17426</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2010-11-24T14:31:19Z</dc:date>
    </item>
  </channel>
</rss>

