<?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: Feature Layer Selection Symbol in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1288743#M81147</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.x does not have concept of selection symbol. You can change the highlightOptions for the layer view. Please take a look this sample as this shows how to change the layer view's highlightOptions:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/highlightoptions-layerviews/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/highlightoptions-layerviews/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 19:34:03 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2023-05-12T19:34:03Z</dc:date>
    <item>
      <title>Feature Layer Selection Symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1288731#M81146</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;In the 3.x JS API, FeatureLayer had a setSelectionSymbol method to control the appearance of the selected feature. In the v4.x JS API, FeatureLayer does not have this method.&lt;/P&gt;&lt;P&gt;How does one set the selection symbol in the 4.x API?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 19:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1288731#M81146</guid>
      <dc:creator>GregKnight-Eptura</dc:creator>
      <dc:date>2023-05-12T19:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Selection Symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1288743#M81147</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.x does not have concept of selection symbol. You can change the highlightOptions for the layer view. Please take a look this sample as this shows how to change the layer view's highlightOptions:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/highlightoptions-layerviews/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/highlightoptions-layerviews/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 19:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1288743#M81147</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-05-12T19:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Selection Symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1289473#M81170</link>
      <description>&lt;P&gt;In the ArcGIS API for JavaScript 4.x, you can set the selection symbol for a FeatureLayer using the selectionSymbol property. Here's how you can set the selection symbol in the 4.x API:&lt;/P&gt;&lt;P&gt;Create a symbol object that represents the appearance of the selected features. This can be any valid symbol type supported by the API, such as SimpleMarkerSymbol, SimpleLineSymbol, or SimpleFillSymbol.&lt;/P&gt;&lt;P&gt;Assign the symbol object to the selectionSymbol property of the FeatureLayer.&lt;/P&gt;&lt;P&gt;Here's an example code snippet that demonstrates setting the selection symbol for a FeatureLayer in the 4.x API:&lt;/P&gt;&lt;P&gt;javascript&lt;BR /&gt;Copy code&lt;BR /&gt;// Create the selection symbol&lt;BR /&gt;const selectionSymbol = {&lt;BR /&gt;type: "simple-fill", // Replace with the desired symbol type&lt;BR /&gt;color: [255, 0, 0, 0.5], // Replace with the desired symbol color&lt;BR /&gt;outline: {&lt;BR /&gt;color: [255, 0, 0], // Replace with the desired outline color&lt;BR /&gt;width: 2 // Replace with the desired outline width&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// Create the FeatureLayer with your data source&lt;BR /&gt;const featureLayer = new FeatureLayer({&lt;BR /&gt;// other layer properties...&lt;BR /&gt;// ...&lt;/P&gt;&lt;P&gt;// Set the selection symbol&lt;BR /&gt;selectionSymbol: selectionSymbol&lt;BR /&gt;});&lt;BR /&gt;In this example, selectionSymbol is created as a simple fill symbol with a red color and a red outline. You can modify the symbol properties according to your requirements.&lt;/P&gt;&lt;P&gt;By setting the selectionSymbol property of the FeatureLayer, the specified symbol will be used to highlight the selected features when they are interacted with, such as through selection events or user interaction.&lt;/P&gt;&lt;P&gt;Note: Ensure that you have loaded the appropriate modules for the symbol type you are using. For example, if you are using a SimpleMarkerSymbol, make sure you have imported the esri/symbols/SimpleMarkerSymbol module in your code.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachel Gomez&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 05:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1289473#M81170</guid>
      <dc:creator>RachelGomez</dc:creator>
      <dc:date>2023-05-16T05:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Selection Symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1289634#M81176</link>
      <description>&lt;P&gt;selectionSymbol does not appear to be a property of FeatureLayer.&amp;nbsp; Am I missing something here?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#properties-summary" target="_blank"&gt;FeatureLayer | API Reference | ArcGIS Maps SDK for JavaScript 4.26 | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 15:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1289634#M81176</guid>
      <dc:creator>GregKnight_Eptura</dc:creator>
      <dc:date>2023-05-16T15:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Selection Symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1313510#M81819</link>
      <description>&lt;P&gt;How can we use a Picture Marker symbol as a highlightoption. Is there a way to achieve it? Or we should do it by some random way?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 06:01:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-selection-symbol/m-p/1313510#M81819</guid>
      <dc:creator>imritanshu</dc:creator>
      <dc:date>2023-07-31T06:01:21Z</dc:date>
    </item>
  </channel>
</rss>

