<?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: Adding marker on a map in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745110#M6720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply. I did try with the infoTemplateDelegate and i don't get the warning but i don't see the blue pin on the map. I am using the same code from last post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Dec 2010 02:29:52 GMT</pubDate>
    <dc:creator>MukulSonwalkar</dc:creator>
    <dc:date>2010-12-03T02:29:52Z</dc:date>
    <item>
      <title>Adding marker on a map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745108#M6718</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;I am trying to add a marker on my map but i am getting some warning (code highlighted) and application crashes on build&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
id&amp;lt;AGSLayerView&amp;gt; graphicsLayerView = [self.mapView.mapLayerViews objectForKey:@"GraphicsLayer"];
 AGSGraphicsLayer* myGraphicsLayer = (AGSGraphicsLayer*)graphicsLayerView.agsLayer;
 //create a marker symbol to be used by our Graphic
 AGSSimpleMarkerSymbol *myMarkerSymbol =
 [AGSSimpleMarkerSymbol simpleMarkerSymbol];
 myMarkerSymbol.color = [UIColor blueColor];
 
 //Create an AGSPoint (which inherits from AGSGeometry) that
 //defines where the Graphic will be drawn
 AGSPoint* myMarkerPoint =
 [AGSPoint pointWithX:-93.2984
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y:44.9409
&amp;nbsp; spatialReference:self.mapView.spatialReference];
 
 //Create the Graphic, using the symbol and
 //geometry created earlier
 AGSGraphic* myGraphic = [AGSGraphic graphicWithGeometry:myMarkerPoint symbol:myMarkerSymbol attributes:nil infoTemplate:nil];
 
 //Add the graphic to the Graphics layer
 [myGraphicsLayer addGraphic:myGraphic];
 
 //Tell the layer to redraw itself
 [myGraphicsLayer dataChanged];

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The warning: AGSGraphics may not respond to '+graphicWithGeometry:symbol:attributes:infoTemplate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am i missing something??? Do i have to include any file/framework??&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 16:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745108#M6718</guid>
      <dc:creator>MukulSonwalkar</dc:creator>
      <dc:date>2021-12-12T16:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding marker on a map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745109#M6719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using the final version of ArcGIS API for iOS 1.0, you will need to replace &lt;/SPAN&gt;&lt;STRONG&gt;infoTemplate&lt;/STRONG&gt;&lt;SPAN&gt; with &lt;/SPAN&gt;&lt;STRONG&gt;infoTemplateDelegate&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSGraphic* myGraphic = [AGSGraphic graphicWithGeometry:myMarkerPoint symbol:myMarkerSymbol attributes:nil &lt;/SPAN&gt;&lt;STRONG&gt;infoTemplateDelegate:nil&lt;/STRONG&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 07:05:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745109#M6719</guid>
      <dc:creator>MelvinTan</dc:creator>
      <dc:date>2010-11-30T07:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding marker on a map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745110#M6720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply. I did try with the infoTemplateDelegate and i don't get the warning but i don't see the blue pin on the map. I am using the same code from last post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 02:29:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745110#M6720</guid>
      <dc:creator>MukulSonwalkar</dc:creator>
      <dc:date>2010-12-03T02:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding marker on a map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745111#M6721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you initialized the Graphics Layer and add it to the map before you execute those statements?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You will need to execute the following first:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSGraphicsLayer* graphicsLayer =&amp;nbsp; [AGSGraphicsLayer graphicsLayer];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[self.mapView addMapLayer:graphicsLayer withName:@"GraphicsLayer"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The name should match what your codes attempt to retrieve.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 07:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745111#M6721</guid>
      <dc:creator>MelvinTan</dc:creator>
      <dc:date>2010-12-03T07:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding marker on a map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745112#M6722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 21:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-marker-on-a-map/m-p/745112#M6722</guid>
      <dc:creator>MukulSonwalkar</dc:creator>
      <dc:date>2011-01-10T21:54:01Z</dc:date>
    </item>
  </channel>
</rss>

