<?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 FeatureLayer highlight in Angular application in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-highlight-in-angular-application/m-p/1084494#M74079</link>
    <description>&lt;P&gt;HI evertyone into community.&lt;/P&gt;&lt;P&gt;I'm in development of an Angular application.&lt;/P&gt;&lt;P&gt;With ArcGIS Pro I converted a CAD map into georeferenced FeatureLayer (with a spatial join between CAD layers) and I am able to load it on hybrid basemap.&lt;BR /&gt;Now when I click on layer I can see details of the selected polygon and my goal is to realize the reverse: select an attribute of layer and highlight it on the layer.&lt;BR /&gt;The problem I face regards the adaptation of JS sample code I can find into developer site to Angular source file.&lt;/P&gt;&lt;P&gt;Into attached image you may see the result of selection of a polygon on layer and the details of that item into the widget: now I would like to highlight as shown the polygon selecting it htorught the Text field.&lt;/P&gt;&lt;P&gt;I made some tests with&lt;/P&gt;&lt;P&gt;- query object&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- LayerSearchSource&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#zoomScale" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#zoomScale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;adding a search widget to viewmap&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this.&lt;/SPAN&gt;&lt;SPAN&gt;search&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Search&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;this.&lt;/SPAN&gt;&lt;SPAN&gt;mapView&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sources&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;[]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but getting an error when I try to modify the source attribute in following way:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this.search.source = [{...},...,{...}]&lt;BR /&gt;&lt;BR /&gt;Any suggestion?&lt;BR /&gt;Any indication where to find good sample for my goal?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance and best regards.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 30 Jul 2021 17:00:40 GMT</pubDate>
    <dc:creator>PaoloF</dc:creator>
    <dc:date>2021-07-30T17:00:40Z</dc:date>
    <item>
      <title>FeatureLayer highlight in Angular application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-highlight-in-angular-application/m-p/1084494#M74079</link>
      <description>&lt;P&gt;HI evertyone into community.&lt;/P&gt;&lt;P&gt;I'm in development of an Angular application.&lt;/P&gt;&lt;P&gt;With ArcGIS Pro I converted a CAD map into georeferenced FeatureLayer (with a spatial join between CAD layers) and I am able to load it on hybrid basemap.&lt;BR /&gt;Now when I click on layer I can see details of the selected polygon and my goal is to realize the reverse: select an attribute of layer and highlight it on the layer.&lt;BR /&gt;The problem I face regards the adaptation of JS sample code I can find into developer site to Angular source file.&lt;/P&gt;&lt;P&gt;Into attached image you may see the result of selection of a polygon on layer and the details of that item into the widget: now I would like to highlight as shown the polygon selecting it htorught the Text field.&lt;/P&gt;&lt;P&gt;I made some tests with&lt;/P&gt;&lt;P&gt;- query object&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- LayerSearchSource&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#zoomScale" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#zoomScale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;adding a search widget to viewmap&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this.&lt;/SPAN&gt;&lt;SPAN&gt;search&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Search&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;this.&lt;/SPAN&gt;&lt;SPAN&gt;mapView&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sources&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;[]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but getting an error when I try to modify the source attribute in following way:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this.search.source = [{...},...,{...}]&lt;BR /&gt;&lt;BR /&gt;Any suggestion?&lt;BR /&gt;Any indication where to find good sample for my goal?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance and best regards.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Jul 2021 17:00:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-highlight-in-angular-application/m-p/1084494#M74079</guid>
      <dc:creator>PaoloF</dc:creator>
      <dc:date>2021-07-30T17:00:40Z</dc:date>
    </item>
  </channel>
</rss>

