<?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 Change AGSLocationDisplay data source dynamically in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/change-agslocationdisplay-data-source-dynamically/m-p/96831#M976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In our app, we have a custom implementation of the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplayDataSource&lt;/SPAN&gt;&lt;SPAN&gt; protocol that receives updates from an external GPS service via a WebSocket. If the WebSocket connection cannot be established or if it is lost, we want to fall back on Core Location. This means that we need to be able to change the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplayDataSource&lt;/SPAN&gt;&lt;SPAN&gt; in use by the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplay&lt;/SPAN&gt;&lt;SPAN&gt; at any time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far, the approach I am using when the WebSocket connection status changes is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;If the current data source is running, stop it by sending &lt;SPAN style="font-family:Courier New;"&gt;-stopDataSource&lt;/SPAN&gt; to the &lt;SPAN style="font-style:italic;"&gt;AGSLocationDisiplay&lt;/SPAN&gt; object&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Update the &lt;SPAN style="font-family:Courier New;"&gt;dataSource&lt;/SPAN&gt; property on the &lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplay&lt;/SPAN&gt; according to the new connection state&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;If the map view is loaded, start the newly assigned data source by sending &lt;SPAN style="font-family:Courier New;"&gt;-startDataSource&lt;/SPAN&gt; to the &lt;SPAN style="font-style:italic;"&gt;AGSLocationDisiplay&lt;/SPAN&gt; object&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSCLLocationManagerLocationDisplayDataSource&lt;/SPAN&gt;&lt;SPAN&gt; object and our custom &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplayDataSource&lt;/SPAN&gt;&lt;SPAN&gt; implementation are allocated once during view controller setup in case that detail matters. The auto-pan mode is &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;AGSLocationDisplayAutoPanModeNavigation&lt;/SPAN&gt;&lt;SPAN&gt; unless the user has panned the map view and has not resumed navigation mode. In that case, it is &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;AGSLocationDisplayAutoPanModeDefault&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The display of the current location after swapping the data source only sort of works. Basically, the blue dot from LocationDisplay.png stops being rendered after the first or second handling of the connection status change. The halo/pulse does get rendered at the right location on the map, although that seems somewhat unreliable as well. I am not sure if that is related to Core Location precision or something else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is switching the data source in this way supported? If &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplay&lt;/SPAN&gt;&lt;SPAN&gt; is not meant to be used this way, I can go back to the drawing board regarding our handling of the connection status. Is there some other way to achieve the behavior that I want?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 20:15:36 GMT</pubDate>
    <dc:creator>PatrickHartling</dc:creator>
    <dc:date>2013-04-15T20:15:36Z</dc:date>
    <item>
      <title>Change AGSLocationDisplay data source dynamically</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/change-agslocationdisplay-data-source-dynamically/m-p/96831#M976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In our app, we have a custom implementation of the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplayDataSource&lt;/SPAN&gt;&lt;SPAN&gt; protocol that receives updates from an external GPS service via a WebSocket. If the WebSocket connection cannot be established or if it is lost, we want to fall back on Core Location. This means that we need to be able to change the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplayDataSource&lt;/SPAN&gt;&lt;SPAN&gt; in use by the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplay&lt;/SPAN&gt;&lt;SPAN&gt; at any time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far, the approach I am using when the WebSocket connection status changes is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;If the current data source is running, stop it by sending &lt;SPAN style="font-family:Courier New;"&gt;-stopDataSource&lt;/SPAN&gt; to the &lt;SPAN style="font-style:italic;"&gt;AGSLocationDisiplay&lt;/SPAN&gt; object&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Update the &lt;SPAN style="font-family:Courier New;"&gt;dataSource&lt;/SPAN&gt; property on the &lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplay&lt;/SPAN&gt; according to the new connection state&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;If the map view is loaded, start the newly assigned data source by sending &lt;SPAN style="font-family:Courier New;"&gt;-startDataSource&lt;/SPAN&gt; to the &lt;SPAN style="font-style:italic;"&gt;AGSLocationDisiplay&lt;/SPAN&gt; object&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSCLLocationManagerLocationDisplayDataSource&lt;/SPAN&gt;&lt;SPAN&gt; object and our custom &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplayDataSource&lt;/SPAN&gt;&lt;SPAN&gt; implementation are allocated once during view controller setup in case that detail matters. The auto-pan mode is &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;AGSLocationDisplayAutoPanModeNavigation&lt;/SPAN&gt;&lt;SPAN&gt; unless the user has panned the map view and has not resumed navigation mode. In that case, it is &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;AGSLocationDisplayAutoPanModeDefault&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The display of the current location after swapping the data source only sort of works. Basically, the blue dot from LocationDisplay.png stops being rendered after the first or second handling of the connection status change. The halo/pulse does get rendered at the right location on the map, although that seems somewhat unreliable as well. I am not sure if that is related to Core Location precision or something else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is switching the data source in this way supported? If &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplay&lt;/SPAN&gt;&lt;SPAN&gt; is not meant to be used this way, I can go back to the drawing board regarding our handling of the connection status. Is there some other way to achieve the behavior that I want?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 20:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/change-agslocationdisplay-data-source-dynamically/m-p/96831#M976</guid>
      <dc:creator>PatrickHartling</dc:creator>
      <dc:date>2013-04-15T20:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change AGSLocationDisplay data source dynamically</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/change-agslocationdisplay-data-source-dynamically/m-p/96832#M977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have attached the source for an iPad app that demonstrates this issue. To see the problem, run the app and do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Tap &lt;STRONG&gt;Start&lt;/STRONG&gt; and wait for the automated navigation to begin.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Tap the &lt;STRONG&gt;Core Location&lt;/STRONG&gt; item in the segmented control (top center); allow the app to access location information; and wait for the view to move to show the location of the device.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Tap the &lt;STRONG&gt;Polyline&lt;/STRONG&gt; item in the segmented control. When navigation resumes for the polyline, there will no longer be an image showing the location.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Tap the &lt;STRONG&gt;Core Location&lt;/STRONG&gt; item again and wait for the view to move back to the location of the device. There will be no image showing the location, but the pulsing animation will be present.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;Testing of this app has been done with Xcode 4.6.2 and versions 10.1.1 and 10.1.1-u1 of the ArcGIS Runtime SDK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 17:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/change-agslocationdisplay-data-source-dynamically/m-p/96832#M977</guid>
      <dc:creator>PatrickHartling</dc:creator>
      <dc:date>2013-06-13T17:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change AGSLocationDisplay data source dynamically</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/change-agslocationdisplay-data-source-dynamically/m-p/96833#M978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you updated for arcgis runtime SDK for iOS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 06:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/change-agslocationdisplay-data-source-dynamically/m-p/96833#M978</guid>
      <dc:creator>MuruganandhamKuppan1</dc:creator>
      <dc:date>2018-08-06T06:17:19Z</dc:date>
    </item>
  </channel>
</rss>

