<?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: AGSGPSAutoPanModeCompassNavigation on Landscape mode in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgpsautopanmodecompassnavigation-on-landscape/m-p/473386#M4053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's possible that you're not passing the new orientation to the AGSGPS object (or in 10.1.1 the AGSLocationDisplay). According to the GPS facade notes in the Overview section, if you're going to support device rotation it's important to update this object with the current orientation, presumably to resolve the problem you've encountered:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/runtime-ios-sdk/concepts/index.html#/Displaying_location_on_the_map/00pw0000004q000000/ESRI_SECTION1_9E550B02B4D84536AD5525D2C2C36DE3/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-ios-sdk/concepts/index.html#/Displaying_location_on_the_map/00pw0000004q000000/ESRI_SECTION1_9E550B02B4D84536AD5525D2C2C36DE3/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the docs the AGSLocationDisplay class has an "interfaceOrientation" property that can be set. I believe the AGSGPS class has the same.&amp;nbsp; The property description reads:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"You must set this if you are using the compass navigation mode and your application user interface orientation is not portrait. This is used for offsetting the compass heading based on the user interface orientation."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/runtime-ios-sdk/apiref/index.htm" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-ios-sdk/apiref/index.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2013 13:34:55 GMT</pubDate>
    <dc:creator>AaronConnolly</dc:creator>
    <dc:date>2013-02-19T13:34:55Z</dc:date>
    <item>
      <title>AGSGPSAutoPanModeCompassNavigation on Landscape mode</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgpsautopanmodecompassnavigation-on-landscape/m-p/473385#M4052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently using ArcGIS for iOS v2.3.2. (no time to update to the new version yet..).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran into a problem when I set my map's GPS navigation mode to AGSGPSAutoPanModeCompassNavigation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in which the map was supposed to rotates to face the direction the user is facing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This work fine when the app is in the portrait mode. But in the landscape mode, I found out that the rotation angle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of the map comparing to the actual direction the user is facing, is off by +/- 90 degree! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need help friends..is there a way to fix this? I tried to set the map angle to be +/- 90 degree before I start the navigation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mode in landscape, but that did not work since the the map would just rotates itself back to the angle it's think is 'correct'..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 07:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgpsautopanmodecompassnavigation-on-landscape/m-p/473385#M4052</guid>
      <dc:creator>TangWorawitphinyo</dc:creator>
      <dc:date>2013-02-19T07:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGPSAutoPanModeCompassNavigation on Landscape mode</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgpsautopanmodecompassnavigation-on-landscape/m-p/473386#M4053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's possible that you're not passing the new orientation to the AGSGPS object (or in 10.1.1 the AGSLocationDisplay). According to the GPS facade notes in the Overview section, if you're going to support device rotation it's important to update this object with the current orientation, presumably to resolve the problem you've encountered:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/runtime-ios-sdk/concepts/index.html#/Displaying_location_on_the_map/00pw0000004q000000/ESRI_SECTION1_9E550B02B4D84536AD5525D2C2C36DE3/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-ios-sdk/concepts/index.html#/Displaying_location_on_the_map/00pw0000004q000000/ESRI_SECTION1_9E550B02B4D84536AD5525D2C2C36DE3/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the docs the AGSLocationDisplay class has an "interfaceOrientation" property that can be set. I believe the AGSGPS class has the same.&amp;nbsp; The property description reads:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"You must set this if you are using the compass navigation mode and your application user interface orientation is not portrait. This is used for offsetting the compass heading based on the user interface orientation."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/runtime-ios-sdk/apiref/index.htm" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-ios-sdk/apiref/index.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgpsautopanmodecompassnavigation-on-landscape/m-p/473386#M4053</guid>
      <dc:creator>AaronConnolly</dc:creator>
      <dc:date>2013-02-19T13:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGPSAutoPanModeCompassNavigation on Landscape mode</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgpsautopanmodecompassnavigation-on-landscape/m-p/473387#M4054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Tang,&lt;BR /&gt;&lt;BR /&gt;It's possible that you're not passing the new orientation to the AGSGPS object (or in 10.1.1 the AGSLocationDisplay). According to the GPS facade notes in the Overview section, if you're going to support device rotation it's important to update this object with the current orientation, presumably to resolve the problem you've encountered:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-ios-sdk/concepts/index.html#/Displaying_location_on_the_map/00pw0000004q000000/ESRI_SECTION1_9E550B02B4D84536AD5525D2C2C36DE3/"&gt;http://resources.arcgis.com/en/help/runtime-ios-sdk/concepts/index.html#/Displaying_location_on_the_map/00pw0000004q000000/ESRI_SECTION1_9E550B02B4D84536AD5525D2C2C36DE3/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;According to the docs the AGSLocationDisplay class has an "interfaceOrientation" property that can be set. I believe the AGSGPS class has the same.&amp;nbsp; The property description reads:&lt;BR /&gt;&lt;BR /&gt;"You must set this if you are using the compass navigation mode and your application user interface orientation is not portrait. This is used for offsetting the compass heading based on the user interface orientation."&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-ios-sdk/apiref/index.htm"&gt;http://resources.arcgis.com/en/help/runtime-ios-sdk/apiref/index.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps!&lt;BR /&gt;&lt;BR /&gt;- Aaron&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah! It's working correctly now. Thank you so much for the help, Aaron!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You were right. I didn't update the current screen orientation to the AGSGPS object, so the rotation was off by 90 degree.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tang&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 15:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgpsautopanmodecompassnavigation-on-landscape/m-p/473387#M4054</guid>
      <dc:creator>TangWorawitphinyo</dc:creator>
      <dc:date>2013-02-19T15:15:43Z</dc:date>
    </item>
  </channel>
</rss>

