<?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: How to show an annotation on a map in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446758#M3815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for responding. I couldn't make much progress. Here is another way asking the same question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the &lt;SPAN class="s1"&gt;CLLocation&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; *location, how can I draw an annotation on the map?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2"&gt;Any code samples would be highly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Oct 2015 01:13:42 GMT</pubDate>
    <dc:creator>SyedMahmud</dc:creator>
    <dc:date>2015-10-02T01:13:42Z</dc:date>
    <item>
      <title>How to show an annotation on a map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446755#M3812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that I have loaded a map in my app, I need to show a marker annotation for a location. Here is the code I'm using but nothing is showing on the map:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;CLLocation&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; *location = [[&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;CLLocation&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;alloc&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;] &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;initWithLatitude&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;:douLat &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;longitude&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;:douLon];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;AGSPoint&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; *markerPoint = [&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;AGSPoint&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;pointWithLocation&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:location];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s4"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;AGSGraphicsLayer&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;* myGraphicsLayer = [&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;AGSGraphicsLayer&lt;/SPAN&gt;&lt;SPAN class="s4"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;graphicsLayer&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;ibMapView&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;addMapLayer&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:myGraphicsLayer &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;withName&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:@"Graphic Layer"];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s4"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;AGSPictureMarkerSymbol&lt;/SPAN&gt;&lt;SPAN class="s4"&gt; *markerSymbol = [&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;AGSPictureMarkerSymbol&lt;/SPAN&gt;&lt;SPAN class="s4"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;pictureMarkerSymbolWithImageNamed&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"existing_project_icon.png"&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;AGSGraphic&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;* myGraphic = [&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;AGSGraphic&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;graphicWithGeometry&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:markerPoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;symbol&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:markerSymbol&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;attributes&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;nil&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s4"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;// Add the graphic to the Graphics layer&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; [myGraphicsLayer &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;addGraphic&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:myGraphic];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;ibMapView&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;callout&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;showCalloutAtPoint&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:markerPoint &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;forFeature&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:myGraphic &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;layer&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:myGraphicsLayer &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;animated&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;YES&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 17:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446755#M3812</guid>
      <dc:creator>SyedMahmud</dc:creator>
      <dc:date>2015-09-27T17:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to show an annotation on a map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446756#M3813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- Did you set your viewController to be the delegate for callouts (`&lt;CODE&gt;&lt;SPAN class="n"&gt;AGSCalloutDelegate`)&lt;/SPAN&gt;&lt;/CODE&gt;?&lt;/P&gt;&lt;P&gt;This is initially `nil` &amp;amp; needs to be set or else annotations won't appear. You can then implement the delegate methods to control what the annotation displays.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/ios/swift/guide/map-callout.htm" title="https://developers.arcgis.com/ios/swift/guide/map-callout.htm"&gt;Displaying a callout—ArcGIS Runtime SDK for iOS | ArcGIS for Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Not sure it's relevant, but you call `showCalloutAtPoint...` immediately after adding the graphic.&lt;/P&gt;&lt;P&gt;Does `myGraphic` appear? If not, maybe refresh the layer or map before calling this method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 01:09:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446756#M3813</guid>
      <dc:creator>MC2</dc:creator>
      <dc:date>2015-09-29T01:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to show an annotation on a map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446757#M3814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you calling the `showCalloutAtPoint` method from? Try doing it from the `mapViewDidLoad` delegate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:13:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446757#M3814</guid>
      <dc:creator>GagandeepSingh</dc:creator>
      <dc:date>2015-09-29T17:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to show an annotation on a map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446758#M3815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for responding. I couldn't make much progress. Here is another way asking the same question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the &lt;SPAN class="s1"&gt;CLLocation&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; *location, how can I draw an annotation on the map?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2"&gt;Any code samples would be highly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 01:13:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446758#M3815</guid>
      <dc:creator>SyedMahmud</dc:creator>
      <dc:date>2015-10-02T01:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to show an annotation on a map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446759#M3816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just replaced the (duoLat, duoLon) in your code with (0, 0) and it worked for me. Can you see the graphic on the map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 17:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-show-an-annotation-on-a-map/m-p/446759#M3816</guid>
      <dc:creator>GagandeepSingh</dc:creator>
      <dc:date>2015-10-07T17:46:31Z</dc:date>
    </item>
  </channel>
</rss>

