<?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 Get Graphic of GraphicsLayer Like on Android in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/get-graphic-of-graphicslayer-like-on-android/m-p/263769#M2459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a possibility to get a graphic near a point on a graphicslayer on IOS in a similar way as on Android?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26249[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(java: int[] clickedGraphicIDs = this.graphicLayer.getGraphicIDs(x, y, 30, 1); )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jul 2013 13:57:12 GMT</pubDate>
    <dc:creator>MariusGächter</dc:creator>
    <dc:date>2013-07-26T13:57:12Z</dc:date>
    <item>
      <title>Get Graphic of GraphicsLayer Like on Android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/get-graphic-of-graphicslayer-like-on-android/m-p/263769#M2459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a possibility to get a graphic near a point on a graphicslayer on IOS in a similar way as on Android?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26249[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(java: int[] clickedGraphicIDs = this.graphicLayer.getGraphicIDs(x, y, 30, 1); )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 13:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/get-graphic-of-graphicslayer-like-on-android/m-p/263769#M2459</guid>
      <dc:creator>MariusGächter</dc:creator>
      <dc:date>2013-07-26T13:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get Graphic of GraphicsLayer Like on Android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/get-graphic-of-graphicslayer-like-on-android/m-p/263770#M2460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are set up for touch events in an AGSMapView (AGSMapViewTouchDelegate), you can use the method &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mapView:didClickAtPoint:mapPoint:graphics:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this will run any time you tap the AGSMapView. It will return graphics as well as the screen and map point that you tapped. You can then do something like this to get all the graphics registered from that tap:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

NSDictionary *graphicsDictionary = graphics;//graphics being what is passed in by the method
NSArray *graphicsArray = [graphicsDictionary valueForKey:@"YourGraphicsLayerName"];

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/get-graphic-of-graphicslayer-like-on-android/m-p/263770#M2460</guid>
      <dc:creator>ChristopherBarger</dc:creator>
      <dc:date>2021-12-11T12:55:47Z</dc:date>
    </item>
  </channel>
</rss>

