<?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 use AGSGPS? in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502341#M4286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks! I can display the current location.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not able to finally make the AGSGPS work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please could you provide me the sample of code that works for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Aug 2010 14:37:45 GMT</pubDate>
    <dc:creator>KOLDODUARTE</dc:creator>
    <dc:date>2010-08-31T14:37:45Z</dc:date>
    <item>
      <title>how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502336#M4281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I get the current coordinate using CLLoationManager. But, I don't know exactly how to use AGSGPS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any sample for AGSGPS?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 07:35:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502336#M4281</guid>
      <dc:creator>JungMinKim</dc:creator>
      <dc:date>2010-07-30T07:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502337#M4282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Think of AGSGPS as the mapView's window to CoreLocation.&amp;nbsp; To access the properties &amp;amp; methods of the AGSGPS object, you access the gps property on the mapView object.&amp;nbsp; To have the mapView start responding to CoreLocation services, call the [mapView.gps start] method.&amp;nbsp; The currentPoint property on AGSGPS will give you the iPhone's current location.&amp;nbsp; Here is a sample snippet from a mapDelegate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;- (void)mapViewDidLoad:(AGSMapView *) mapView{
 
 [mapView.gps start];

 if (!mapView.gps.enabled) {
&amp;nbsp; NSLog(@"The GPS is not enabled");
 }
 else if (mapView.gps.enabled) {
&amp;nbsp; NSLog(@"The GPS is enabled");
&amp;nbsp; 
 } 
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:03:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502337#M4282</guid>
      <dc:creator>JeremyBixby</dc:creator>
      <dc:date>2021-12-11T22:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502338#M4283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! I can display the current location.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 00:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502338#M4283</guid>
      <dc:creator>JungMinKim</dc:creator>
      <dc:date>2010-08-02T00:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502339#M4284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks! I can display the current location.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, How you can go zoom until your current location?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 11:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502339#M4284</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-08-06T11:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502340#M4285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This ought to happen for you automatically, if you've got the AGSGPS turned on.&amp;nbsp; If you are talking about something like a button to go back to your current point after you've been panning around the map, I would modify and use Divesh's code at the end of this thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/7150-How-to-map-zoom-in-level"&gt;http://forums.arcgis.com/threads/7150-How-to-map-zoom-in-level&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Get the currentPoint object, and set the parameters on the AGSMutableEnvelope to something appropriate, according to your x and y from the currentPoint on the AGSGPS object.&amp;nbsp; Then call &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[self.mapView zoomToEnvelope:newEnvelopeBasedOnCurrentLocation animated:YES];&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 18:24:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502340#M4285</guid>
      <dc:creator>JeremyBixby</dc:creator>
      <dc:date>2010-08-06T18:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502341#M4286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks! I can display the current location.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not able to finally make the AGSGPS work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please could you provide me the sample of code that works for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 14:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502341#M4286</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-08-31T14:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502342#M4287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank&amp;nbsp; you all, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Definetly Ive been able to make it work. But I have a last question: is there a way to modify the symbology of the GPS point? (e.g. apply a custom png)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 14:27:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502342#M4287</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-09-02T14:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502343#M4288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From the class documentation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;By default, the map uses a round, blue symbol to display the current location. You can replace this symbol with an image icon of your choice. This image must be included in the application bundle, it must be named GpsDisplay.png and it must be 35x35 pixels in size.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 15:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502343#M4288</guid>
      <dc:creator>JeremyBixby</dc:creator>
      <dc:date>2010-09-03T15:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502344#M4289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;From the class documentation:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom PNG with this name and this size, but now I don't know how to include this picture in the application bundle. Could you help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 20:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502344#M4289</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-09-03T20:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502345#M4290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I am in the Info.plist where my application bundle settings are, and I don´t know how to set the key for the GPS icon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Sep 2010 08:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502345#M4290</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-09-04T08:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502346#M4291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your XCode project, select "Resources" folder &amp;gt;&amp;gt; Right click and select "Add" &amp;gt;&amp;gt; Existing Files.. &amp;gt;&amp;gt; Browse to your custom GpsDisply.png file and add it.&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>Sun, 05 Sep 2010 06:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502346#M4291</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2010-09-05T06:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502347#M4292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In your XCode project, select "Resources" folder &amp;gt;&amp;gt; Right click and select "Add" &amp;gt;&amp;gt; Existing Files.. &amp;gt;&amp;gt; Browse to your custom GpsDisply.png file and add it.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nimesh&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That also already I have done it, but my custom PNG does not appear, the blue symbol default does not want to go away !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Sep 2010 08:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502347#M4292</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-09-05T08:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502348#M4293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Nimesh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still not able to see my GPS icon. I attach you a screen capture of the form to add a file in the project. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know the setting needed for this icon?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Koldo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 13:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502348#M4293</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-09-06T13:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502349#M4294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please find attached MapViewDemo sample where I've changed GPS display image. While adding image to the project, the checkbox, "Copy item..." selected in addition to the setting you have. Please make sure, if have that blue symbol image in your project then remove it and rebuild the project.&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>Mon, 06 Sep 2010 21:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502349#M4294</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2010-09-06T21:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502350#M4295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Please find attached MapViewDemo sample where I've changed GPS display image. While adding image to the project, the checkbox, "Copy item..." selected in addition to the setting you have. Please make sure, if have that blue symbol image in your project then remove it and rebuild the project.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nimesh&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Nimesh for your anwers. But still we are not able to use our own icon for GPS. We look into your project and we tried to rename your GpsDisplay.png to GpsDisplay_.png and "Clean all" and the project keeps putting your custom icon. Strange! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the other side, our project is a Project Base type. We do not have a resource folder as yours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again and hope you can help us with this matter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Koldo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 13:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502350#M4295</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-09-07T13:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502351#M4296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of renaming, remove the image from project as well as from disk and then "Clean All".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, is it possible to attach your sample project so I can have a look at it. You can email me at &lt;/SPAN&gt;&lt;A href="mailto:njarecha@esri.com"&gt;njarecha@esri.com&lt;/A&gt;&lt;SPAN&gt;.&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>Tue, 07 Sep 2010 14:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502351#M4296</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2010-09-07T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502352#M4297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Nimesh for your e-mail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will explain the solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my project (Window-based application UNIVERSAL), I have not any &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"Resources"&lt;/SPAN&gt;&lt;SPAN&gt; folder. And the solution is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your project, you must have 2 png with this names:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;GpsDisplay.png&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;GpsDisplayHeading.png&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Now, you can see your custom png file on your map!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again Nimesh !!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Koldo.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 19:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502352#M4297</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-09-15T19:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502353#M4298</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 tried to add the code suggested by Jeremy but mapViewDidLoad is never called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
#pragma mark AGSMapViewDelegate

//called when the map view is loaded (after the view is loaded) 
- (void)mapViewDidLoad:(AGSMapView *)mapView {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 NSLog(@"mapView is loaded");
 
 [mapView.gps start];
 
 if (!mapView.gps.enabled) {
&amp;nbsp; NSLog(@"The GPS is not enabled");
 }
 else if (mapView.gps.enabled) {
&amp;nbsp; NSLog(@"The GPS is enabled");
&amp;nbsp; 
 } 
 
} &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add the following code to viewDidLoad, it tells me that GPS is not enabled (in the simulator). When I run the official MapViewDemo it works though...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.mapView.gps start];
 
 
 if (!self.mapView.gps.enabled) {
&amp;nbsp; NSLog(@"The GPS is not enabled");
 }
 else if (self.mapView.gps.enabled) {
&amp;nbsp; NSLog(@"The GPS is enabled");
&amp;nbsp; 
 }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My MapServer uses EPSG:31259 as the spatial reference. Does the mapView take care of the transformation from WGS84?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:03:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502353#M4298</guid>
      <dc:creator>PaulJereb</dc:creator>
      <dc:date>2021-12-11T22:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to use AGSGPS?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502354#M4299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That method is part of the AGSMapViewDelegate protocol, so you've got to implement that in a different class that uses that AGSMapViewDelegate.&amp;nbsp; You then need to give the delegate to the mapView, but be careful to assign it as the mapViewDelegate and not just the delegate.&amp;nbsp; I have pasted some code below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the map delegate header:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#import &amp;lt;UIKit/UIKit.h&amp;gt;
#import "ArcGIS.h"

@interface iLenexaMapsDelegate : UIViewController
&amp;lt;AGSMapViewDelegate, UIScrollViewDelegate&amp;gt;
{}

@end&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the map delegate implementation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#import "iLenexaMapsDelegate.h"
#import "iLenexaModel.h"
#import "iLenexaMapView.h"

@implementation iLenexaMapsDelegate


- (void)mapViewDidLoad:(AGSMapView *) mapView{
 
 [mapView.gps start];
 mapView.gps.autoPan = YES;
 
 if(!mapView.gps.enabled){ 
&amp;nbsp; NSLog(@"The GPS is NOT enabled!"); 
 }

 else if (mapView.gps.enabled){
&amp;nbsp; NSLog(@"The GPS IS IN FACT enabled...");
 }
}

-(void)mapViewDidEndPanning:(AGSMapView *) mapView{
 NSLog(@"The map view did end panning");
 
 iLenexaModel *myModel = [iLenexaModel sharedModel];
 myModel.currLocation = mapView.gps.currentPoint;
}

-(void)mapViewDidEndZooming:(AGSMapView *) mapView{
 NSLog(@"The map view did end zooming");
}

-(void)mapView:(AGSMapView *) mapView didAddLayerView:(id) layerView{
 
 //Need to set the default alpha parameters on each layer...
}


-(void)mapView:(AGSMapView *) mapView didChangeEnvelope:(AGSEnvelope *) envelope{}

/*
 // The designated initializer.&amp;nbsp; Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Custom initialization
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return self;
}
*/

/*
// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
}
*/

/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
&amp;nbsp;&amp;nbsp;&amp;nbsp; [super viewDidLoad];
}
*/


// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Return YES for supported orientations
&amp;nbsp;&amp;nbsp;&amp;nbsp; //return (interfaceOrientation == UIInterfaceOrientationPortrait);
 return YES;
}


- (void)didReceiveMemoryWarning {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Releases the view if it doesn't have a superview.
&amp;nbsp;&amp;nbsp;&amp;nbsp; [super didReceiveMemoryWarning];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
&amp;nbsp;&amp;nbsp;&amp;nbsp; [super viewDidUnload];
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Release any retained subviews of the main view.
&amp;nbsp;&amp;nbsp;&amp;nbsp; // e.g. self.myOutlet = nil;
}


- (void)dealloc {
&amp;nbsp;&amp;nbsp;&amp;nbsp; [super dealloc];
}


@end&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to create a mapViewDelegate and assign it to a mapView:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
 
&amp;nbsp;&amp;nbsp;&amp;nbsp; [super viewDidLoad];

 mapsDelegate = [[iLenexaMapsDelegate alloc] init];
 mapView.mapViewDelegate = mapsDelegate;
//...and so on
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:03:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-use-agsgps/m-p/502354#M4299</guid>
      <dc:creator>JeremyBixby</dc:creator>
      <dc:date>2021-12-11T22:03:05Z</dc:date>
    </item>
  </channel>
</rss>

