<?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: Displaying callouts in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289755#M2615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check out our latest &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=17a21ac9f847472b84bcda8c66f942c8"&gt;sample &lt;/A&gt;&lt;SPAN&gt;showing how to display popups.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2012 21:30:52 GMT</pubDate>
    <dc:creator>DiveshGoyal</dc:creator>
    <dc:date>2012-11-19T21:30:52Z</dc:date>
    <item>
      <title>Displaying callouts</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289751#M2611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to display callouts on my map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The map and the layer for the graphic objects is displayed with this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;NSString* passauStreetMapUrl = @"http://www.geoportal.passau.de/ArcGIS/rest/services/STADTPLAN/MapServer"; NSString* passauPoiLayerUrl = @"http://www.geoportal.passau.de/ArcGIS/rest/services/APPDATEN/MapServer"; NSString* worldMapUrl = @"http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer";&amp;nbsp; //set this class as the delegate for the callout (popups) &amp;nbsp;&amp;nbsp;&amp;nbsp; self.mapView.calloutDelegate = self; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //set this class as the delegate for the mapview &amp;nbsp;&amp;nbsp;&amp;nbsp; self.mapView.layerDelegate = self; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //set wrap around vor the world map view &amp;nbsp;&amp;nbsp;&amp;nbsp; self.mapView.wrapAround = YES; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //create url &amp;nbsp;&amp;nbsp;&amp;nbsp; NSURL* urlPassauMap = [NSURL URLWithString: passauStreetMapUrl]; &amp;nbsp;&amp;nbsp;&amp;nbsp; NSURL* urlPassauPoiLayer = [NSURL URLWithString: passauPoiLayerUrl]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //create tiled(PassauAirMap) and dynamic(PassauMap with layers) maps &amp;nbsp;&amp;nbsp;&amp;nbsp; self.layerPassauMap = [AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL: urlPassauMap]; &amp;nbsp;&amp;nbsp;&amp;nbsp; self.layerPassauPoi = [AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL: urlPassauPoiLayer]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //add maps to view &amp;nbsp;&amp;nbsp;&amp;nbsp; self.lyrView = [self.mapView addMapLayer:self.layerPassauMap withName:@"layerPassauMap"]; &amp;nbsp;&amp;nbsp;&amp;nbsp; self.lyrView = [self.mapView addMapLayer:self.layerPassauPoi withName:@"layerPassauPoi"]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //set certain layers of the PassauMap to visible &amp;nbsp;&amp;nbsp;&amp;nbsp; self.layerPassauPoi.visibleLayers = [NSArray arrayWithObjects:[NSNumber numberWithInt:0], nil];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I want to add callout to the graphic objects on self.layerPassauPoi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to get the graphic objects out of the layerPassauPoi.visibleLayers (AGSDynamicMapServiceLayer) array and set the "infoTemplateDelegate" on these graphic objects? Or maybe not from the visibleLayers-array but from an other part of the AGSDynamicMapServiceLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is this approach completely wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be great if someone could give me a little hint!:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;______&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Philipp&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 22:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289751#M2611</guid>
      <dc:creator>PhilippFauser</dc:creator>
      <dc:date>2012-11-09T22:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying callouts</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289752#M2612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, I think I'm gonna rephrase my question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First: I add a layer to my mapView. On this layer I use the layer.visibleLayers array to display the sub-layer (these are certain points of sights on the map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second: Now I want to show a popup window if the user clicks on a sight point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is "Second" possible with the method I display the points on the map (described in "First")?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The API about layer.visibleLayers says "The sub-layers to be included in the map image exported by the map service.". Does that mean the sight points are no extra graphics but included in the map image, so a click on a sight point is not recognized? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If all answers are "No": How can I achieve this functionality with other methods?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 10:36:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289752#M2612</guid>
      <dc:creator>PhilippFauser</dc:creator>
      <dc:date>2012-11-14T10:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying callouts</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289753#M2613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And the answer is "No"! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to use an AGSFeatureLayer instead of the AGSDynamicMapServiceLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 17:39:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289753#M2613</guid>
      <dc:creator>PhilippFauser</dc:creator>
      <dc:date>2012-11-14T17:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying callouts</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289754#M2614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you are correct. You've to use AGSFeatureLayer if you want your tap to recognize graphic and show callout/popup.&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>Wed, 14 Nov 2012 21:35:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289754#M2614</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-11-14T21:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying callouts</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289755#M2615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check out our latest &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=17a21ac9f847472b84bcda8c66f942c8"&gt;sample &lt;/A&gt;&lt;SPAN&gt;showing how to display popups.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 21:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/displaying-callouts/m-p/289755#M2615</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2012-11-19T21:30:52Z</dc:date>
    </item>
  </channel>
</rss>

