<?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: AGSTiledLayer for cached and dynamic data in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agstiledlayer-for-cached-and-dynamic-data/m-p/614284#M5414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have made some progress on this effort, although the results thus far are not promising. The best way that I can think of to describe it is to say that the tile data produced by my &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSTiledLayer&lt;/SPAN&gt;&lt;SPAN&gt; subclass flashes in and out. I had hoped that previously received tile data for a given key would remain visible until it was replaced by a later call to &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;-setTileData:forKey:&lt;/SPAN&gt;&lt;SPAN&gt; or the tile was no longer of interest. Instead, there is a very definite period of time where the tile data generated by my layer is removed from the map view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible that I am misusing &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;-setTileData:forKey:&lt;/SPAN&gt;&lt;SPAN&gt;? For example, does it need to be invoked from a specific thread?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 20:41:41 GMT</pubDate>
    <dc:creator>PatrickHartling</dc:creator>
    <dc:date>2013-07-08T20:41:41Z</dc:date>
    <item>
      <title>AGSTiledLayer for cached and dynamic data</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agstiledlayer-for-cached-and-dynamic-data/m-p/614283#M5413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand that instances of &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSTiledLayer&lt;/SPAN&gt;&lt;SPAN&gt; are designed for cached imagery, but is it possible to use them for a combination of cached and dynamic data? For example, our application receives geographic sample data when communicating with a sampling source attached to a vehicle. The majority of the data is historical and gets pulled from a persistent store. That could be rendered as cached tiles. With the vehicle in motion and new samples coming in, there could be 1 to 4 tiles that contain new data to display at fairly regular intervals.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having a way to refresh only those updated tiles is basically what we have been implementing in a subclass of &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSDynamicLayer&lt;/SPAN&gt;&lt;SPAN&gt;. If we could leverage the built-in tiling afforded by &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSTiledLayer&lt;/SPAN&gt;&lt;SPAN&gt;, our code may very well end up being a lot simpler and a lot faster. I will work on writing some code to test the possibility of using &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSTiledLayer&lt;/SPAN&gt;&lt;SPAN&gt; instead of &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSDynamicLayer&lt;/SPAN&gt;&lt;SPAN&gt;, but it would help to know if this is at all practical in the current architecture of the ArcGIS Runtime SDK for iOS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 19:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agstiledlayer-for-cached-and-dynamic-data/m-p/614283#M5413</guid>
      <dc:creator>PatrickHartling</dc:creator>
      <dc:date>2013-07-02T19:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: AGSTiledLayer for cached and dynamic data</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agstiledlayer-for-cached-and-dynamic-data/m-p/614284#M5414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have made some progress on this effort, although the results thus far are not promising. The best way that I can think of to describe it is to say that the tile data produced by my &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSTiledLayer&lt;/SPAN&gt;&lt;SPAN&gt; subclass flashes in and out. I had hoped that previously received tile data for a given key would remain visible until it was replaced by a later call to &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;-setTileData:forKey:&lt;/SPAN&gt;&lt;SPAN&gt; or the tile was no longer of interest. Instead, there is a very definite period of time where the tile data generated by my layer is removed from the map view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible that I am misusing &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;-setTileData:forKey:&lt;/SPAN&gt;&lt;SPAN&gt;? For example, does it need to be invoked from a specific thread?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 20:41:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agstiledlayer-for-cached-and-dynamic-data/m-p/614284#M5414</guid>
      <dc:creator>PatrickHartling</dc:creator>
      <dc:date>2013-07-08T20:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: AGSTiledLayer for cached and dynamic data</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agstiledlayer-for-cached-and-dynamic-data/m-p/614285#M5415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tracked down the cause of the behavior that I described in the previous reply. I was sending &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;-refresh&lt;/SPAN&gt;&lt;SPAN&gt; to the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSTiledLayer&lt;/SPAN&gt;&lt;SPAN&gt; object as the data associated with the layer changed. For my use case, this happens about once per second, if not more frequently. Sending &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;-refresh&lt;/SPAN&gt;&lt;SPAN&gt; results in two things happening:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;The removal of the previously rendered tiles&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;A fresh round of tile data requests&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;In between those two steps, there is a noticeable period in which nothing from my custom layer is being displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not seen a way to tell the SDK that the tile for a specific tile key should be redrawn--only the whole layer. Is there any way to do that? Sending the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSTiledLayer&lt;/SPAN&gt;&lt;SPAN&gt; object &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;-requestDataForKey:&lt;/SPAN&gt;&lt;SPAN&gt; directly does not seem to do the trick. Given that &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSTiledLayer&lt;/SPAN&gt;&lt;SPAN&gt; is meant for static, cached data, I can certainly see how that capability would not exist.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 14:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agstiledlayer-for-cached-and-dynamic-data/m-p/614285#M5415</guid>
      <dc:creator>PatrickHartling</dc:creator>
      <dc:date>2013-07-10T14:59:51Z</dc:date>
    </item>
  </channel>
</rss>

