<?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: IOS Touch and CallOut in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639236#M5676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not getting any result because AGSIdentifyTask is getting released. Create a retain property for "AGSIdentifyTask *task" and then try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2012 21:47:57 GMT</pubDate>
    <dc:creator>NimeshJarecha</dc:creator>
    <dc:date>2012-08-03T21:47:57Z</dc:date>
    <item>
      <title>IOS Touch and CallOut</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639233#M5673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I am new to esri IOS programming. I have a mapview with a basemap and a dynamic layer. I am trying to display a callout with information from the dynamic layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have made use of touchDelegate and it is invoking the didClickAtPoint method however when i click on the dynamic layer, the graphics arguments of the didClickAtPoint contains nothing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there any step i am missing. Can anyone guide me please.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 15:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639233#M5673</guid>
      <dc:creator>FaizanTayyab</dc:creator>
      <dc:date>2012-08-02T15:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: IOS Touch and CallOut</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639234#M5674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay..let me explain few things...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Dynamic layer is just an IMAGE not a GRAPHIC which you click and get he information. Please go through &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-ios-sdk/concepts/00pw/00pw0000004m000000.htm"&gt;ArcGIS Dynamic Map Service Layer&lt;/A&gt;&lt;SPAN&gt; document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. If you want to show the information for a feature in a dynamic layer then you will have to request it from server by either executing query task or identify task. They will return result as graphics. Which you suppose to add to the graphics layer and then on click of that graphic you can show the callout and detail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. If you want directly graphics in map then use AGSFeatureLayer instead of AGSDynamicMapServiceLayer. On click of a feature of feature layer you'll see callout and show further detail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 18:07:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639234#M5674</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-08-02T18:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: IOS Touch and CallOut</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639235#M5675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks the for reply. I have the following code but i am not getting any results neither it is failing. Is something wrong in the code below?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
-(void) mapView:(AGSMapView *)mapView didClickAtPoint:(CGPoint)screen mapPoint:(AGSPoint *)mappoint graphics:(NSDictionary *)graphics{
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSURL *petroURL=[[NSURL alloc]initWithString:@"http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; //AGSIdentifyTask *task=[AGSIdentifyTask identifyTaskWithURL:petroURL];
&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSIdentifyTask *task=[[AGSIdentifyTask alloc]initWithURL:petroURL];
&amp;nbsp;&amp;nbsp;&amp;nbsp; [task setDelegate:self];
&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSIdentifyParameters *param=[[AGSIdentifyParameters alloc]init];
&amp;nbsp;&amp;nbsp;&amp;nbsp; param.layerIds=[NSArray arrayWithObjects:[NSNumber numberWithInt:5], nil];
&amp;nbsp;&amp;nbsp;&amp;nbsp; param.tolerance=5;
&amp;nbsp;&amp;nbsp;&amp;nbsp; param.geometry=mappoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; param.size=self.mapView.bounds.size;
&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSEnvelope *env=[[AGSEnvelope alloc]initWithXmin:-10948000 ymin:-6624000 xmax:9794000 ymax:7406000 spatialReference:self.mapView.spatialReference];
&amp;nbsp;&amp;nbsp;&amp;nbsp; param.mapEnvelope=env;
&amp;nbsp;&amp;nbsp;&amp;nbsp; param.returnGeometry=YES;
&amp;nbsp;&amp;nbsp;&amp;nbsp; param.layerOption=AGSIdentifyParametersLayerOptionAll;
&amp;nbsp;&amp;nbsp;&amp;nbsp; param.spatialReference=self.mapView.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [task executeWithParameters:param];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}
-(void) identifyTask:(AGSIdentifyTask *)identifyTask operation:(NSOperation *)op didExecuteWithIdentifyResults:(NSArray *)results{
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@" %@ ",[results count]);
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:09:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639235#M5675</guid>
      <dc:creator>FaizanTayyab</dc:creator>
      <dc:date>2021-12-12T03:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: IOS Touch and CallOut</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639236#M5676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not getting any result because AGSIdentifyTask is getting released. Create a retain property for "AGSIdentifyTask *task" and then try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 21:47:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639236#M5676</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-08-03T21:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: IOS Touch and CallOut</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639237#M5677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's not getting any result because AGSIdentifyTask is getting released. Create a retain property for "AGSIdentifyTask *task" and then try.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nimesh&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As i am using ARC i am getting an error while using&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
[task retain]
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought that using alloc, there is not need to retain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:09:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639237#M5677</guid>
      <dc:creator>FaizanTayyab</dc:creator>
      <dc:date>2021-12-12T03:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: IOS Touch and CallOut</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639238#M5678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using ARC then you should create property with 'strong' keyword.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in .h file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@property (nonatomic, strong) AGSIdentifyTask *task;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in .m file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@synthesize task;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.task=[[AGSIdentifyTask alloc]initWithURL:petroURL];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 22:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639238#M5678</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-08-03T22:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: IOS Touch and CallOut</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639239#M5679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you are using ARC then you should create property with 'strong' keyword.&lt;BR /&gt;&lt;BR /&gt;in .h file&lt;BR /&gt;@property (nonatomic, strong) AGSIdentifyTask *task;&lt;BR /&gt;&lt;BR /&gt;in .m file&lt;BR /&gt;@synthesize task;&lt;BR /&gt;self.task=[[AGSIdentifyTask alloc]initWithURL:petroURL];&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nimesh&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That worked!!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks alot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 22:51:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-touch-and-callout/m-p/639239#M5679</guid>
      <dc:creator>FaizanTayyab</dc:creator>
      <dc:date>2012-08-03T22:51:57Z</dc:date>
    </item>
  </channel>
</rss>

