<?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: Selecting a graphic in AGSGraphicsOverlay in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744532#M6702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good. So my assumption was correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what is about specifying selection symbol? I want to use another symbol for a selected graphic, not a color but a graphic symbol. Do you have any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 May 2017 04:31:41 GMT</pubDate>
    <dc:creator>NikolayYekimov1</dc:creator>
    <dc:date>2017-05-20T04:31:41Z</dc:date>
    <item>
      <title>Selecting a graphic in AGSGraphicsOverlay</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744530#M6700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to migrate from iOS SDK 10.2.5 to 100.0.1 and having some questions. I read migration guide and checked examples on the github and still can't get how to select a graphic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, how to specify a selectionSymbol. In 10.2.5 I used to set `AGSGraphicsLayer.&lt;SPAN class=""&gt;selectionSymbol`, the&amp;nbsp;AGSGraphicsOverlay doesn't have such property. It seems that now the layer isn't anymore responsible for graphics selection but still have a method `&lt;/SPAN&gt;&lt;SPAN class=""&gt;clearSelection&lt;/SPAN&gt;&lt;SPAN class=""&gt;()`.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;So it looks like I should use `&lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;mapView&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;identify&lt;/SPAN&gt;&lt;SPAN class=""&gt;(AGSGraphicsOverlay, ...)` method&amp;nbsp;on map touch and then run graphic.isSelected = true on the results. Is it a correct plan? And still how to specify a selection&amp;nbsp;symbol? Or should I change the graphic.symbol each time?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 21:17:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744530#M6700</guid>
      <dc:creator>NikolayYekimov1</dc:creator>
      <dc:date>2017-05-19T21:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a graphic in AGSGraphicsOverlay</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744531#M6701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;SPAN style="color: #8b8b8b; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" data-userid="226635" data-username="nyekimov" href="https://community.esri.com/people/nyekimov" style="color: #8ca9cd; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 13.7136px;" target="_blank"&gt;Nikolay Yekimov&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on my&amp;nbsp;test, it looks like in 100.0.0, when you identify the graphic, it doesn't means you selected it.&lt;/P&gt;&lt;P&gt;I use this method to check:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphicsOverlay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;selectedGraphics&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it returns an empty array. So you have to call&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;isSelected = true&lt;/STRONG&gt; at this moment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Here is the screenshot that illustrate the result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="352868" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/352868_pastedImage_1.png" style="width: 620px; height: 398px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:40:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744531#M6701</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2021-12-12T07:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a graphic in AGSGraphicsOverlay</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744532#M6702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good. So my assumption was correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what is about specifying selection symbol? I want to use another symbol for a selected graphic, not a color but a graphic symbol. Do you have any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 04:31:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744532#M6702</guid>
      <dc:creator>NikolayYekimov1</dc:creator>
      <dc:date>2017-05-20T04:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a graphic in AGSGraphicsOverlay</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744533#M6703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We don't provide the ability to specify a selection symbol. If you want to use a different symbol for selected graphics, assign the selected graphics a new symbol, and revert the symbol back when you unselect them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 20:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744533#M6703</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2017-05-22T20:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a graphic in AGSGraphicsOverlay</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744534#M6704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sounds sad (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v 10.2.x had this ability...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 20:52:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744534#M6704</guid>
      <dc:creator>NikolayYekimov1</dc:creator>
      <dc:date>2017-05-22T20:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a graphic in AGSGraphicsOverlay</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744535#M6705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sad (&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2019 16:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/selecting-a-graphic-in-agsgraphicsoverlay/m-p/744535#M6705</guid>
      <dc:creator>MonteMango</dc:creator>
      <dc:date>2019-12-16T16:19:19Z</dc:date>
    </item>
  </channel>
</rss>

