<?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 Customizing graphic selection in 100.x in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167671#M1538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In 100.x, graphic selection does not seem to be customizable. When graphic overlay's selectGraphics() is called, the map always highlights the graphics with a cyan outline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 10.2.x, selection was easily customizable&amp;nbsp;by&amp;nbsp;setting a selectionSymbol on the graphic. Is there an equivalent or similar way in 100.x?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From&amp;nbsp;an earlier discussion (&lt;A _jive_internal="true" href="https://community.esri.com/thread/195355-selecting-a-graphic-in-agsgraphicsoverlay#comment-688706"&gt;https://community.esri.com/thread/195355-selecting-a-graphic-in-agsgraphicsoverlay#comment-688706&lt;/A&gt;), it was suggested to manually assign a different symbol upon selection and revert back upon deselection. The problem with this approach is the default cyan outline is still applied to the graphic.&amp;nbsp;Is there a way to disable that cyan outline while still using selectGraphics()? I don't want to skip selectGraphics() because then I will lose the ability to use selectedGraphics() and clearSelection().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Apr 2019 02:04:53 GMT</pubDate>
    <dc:creator>AndrewLeung</dc:creator>
    <dc:date>2019-04-06T02:04:53Z</dc:date>
    <item>
      <title>Customizing graphic selection in 100.x</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167671#M1538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In 100.x, graphic selection does not seem to be customizable. When graphic overlay's selectGraphics() is called, the map always highlights the graphics with a cyan outline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 10.2.x, selection was easily customizable&amp;nbsp;by&amp;nbsp;setting a selectionSymbol on the graphic. Is there an equivalent or similar way in 100.x?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From&amp;nbsp;an earlier discussion (&lt;A _jive_internal="true" href="https://community.esri.com/thread/195355-selecting-a-graphic-in-agsgraphicsoverlay#comment-688706"&gt;https://community.esri.com/thread/195355-selecting-a-graphic-in-agsgraphicsoverlay#comment-688706&lt;/A&gt;), it was suggested to manually assign a different symbol upon selection and revert back upon deselection. The problem with this approach is the default cyan outline is still applied to the graphic.&amp;nbsp;Is there a way to disable that cyan outline while still using selectGraphics()? I don't want to skip selectGraphics() because then I will lose the ability to use selectedGraphics() and clearSelection().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2019 02:04:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167671#M1538</guid>
      <dc:creator>AndrewLeung</dc:creator>
      <dc:date>2019-04-06T02:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing graphic selection in 100.x</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167672#M1539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can change selection color like so in swift:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;            &lt;SPAN class="comment token"&gt;// set selection color&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;let&lt;/SPAN&gt; sp &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;AGSSelectionProperties&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;green&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
            mapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;selectionProperties &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sp&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167672#M1539</guid>
      <dc:creator>RyanOlson1</dc:creator>
      <dc:date>2021-12-11T08:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing graphic selection in 100.x</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167673#M1540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that if you're just using the &lt;STRONG&gt;AGSGraphicsOverlay&lt;/STRONG&gt;'s selection to track/flag certain graphics, you could set the &lt;STRONG&gt;mapView.selectionProperties.color&lt;/STRONG&gt;&amp;nbsp;property to &lt;STRONG&gt;UIColor.clear&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if that's the case, I would probably keep a separate &lt;STRONG&gt;Set&amp;lt;AGSGraphic&amp;gt;&lt;/STRONG&gt;&amp;nbsp;variable that I used to track those graphics. Granted, you might need to do some additional logic when&amp;nbsp;graphics are removed from the &lt;STRONG&gt;AGSGraphicsOverlay&lt;/STRONG&gt;, and it depends on what you're trying to do, but that could be a cleaner solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 17:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167673#M1540</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-04-10T17:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing graphic selection in 100.x</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167674#M1541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your replies.&amp;nbsp;Setting selectionProperties.color to UIColor.clear worked; it lets me hide the halo so I can apply a&amp;nbsp;different symbol (thicker outlines and darker&amp;nbsp;fill color)&amp;nbsp;to&amp;nbsp;a selected graphic manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, managing selection is still much more involved&amp;nbsp;than 10.2.x where I could have set each graphic's selectionSymbol ahead of time and not have to manually change the graphic's symbol&amp;nbsp;at every selection/deselection. The same goes for AGSFeatureLayer; the selectionSymbol property is gone in 100.x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what the rationale was&amp;nbsp;for removing&amp;nbsp;those properties in the new SDK and not having a similar alternative?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 18:34:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167674#M1541</guid>
      <dc:creator>AndrewLeung</dc:creator>
      <dc:date>2019-04-12T18:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing graphic selection in 100.x</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167675#M1542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As it happens, we just wrote a blog post discussing this:&amp;nbsp;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/developers/announcements/selection-behavior-changes-in-runtime-100-5/" title="https://www.esri.com/arcgis-blog/products/developers/announcements/selection-behavior-changes-in-runtime-100-5/"&gt;Selection behavior changes in Runtime 100.5&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At 10.2, you could set a selection symbol on the Graphics Layer or the Feature Layer, not the graphic itself. But yes, the behavior is changed at 100.x, for two primary reasons: performance, and consistency with the rest of the platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our "halo" approach works well as&amp;nbsp;selection feedback&amp;nbsp;for a GIS but I can see it's not necessarily the best UX for a custom location app. I'll bring it up with the team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're working with graphics overlays, one approach I've used in the past is&amp;nbsp;to use a UniqueValueRenderer on&amp;nbsp;a "highlighted" or "focused" attribute on the graphic. Rather than manipulating the graphics selection, you would set the attribute to "true" and let the renderer handle the rest. But that would get&amp;nbsp;tricky once you started working with Feature Layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2019 15:15:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167675#M1542</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-04-15T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing graphic selection in 100.x</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167676#M1543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will give UniqueValueRenderer a try. Thanks for bringing this up with your team!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 18:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/customizing-graphic-selection-in-100-x/m-p/167676#M1543</guid>
      <dc:creator>AndrewLeung</dc:creator>
      <dc:date>2019-04-23T18:38:58Z</dc:date>
    </item>
  </channel>
</rss>

