<?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: Is API possible to auto cache tiledmapservice ? in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/is-api-possible-to-auto-cache-tiledmapservice/m-p/32277#M333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;You could create a custom tiled layer which contains an instance of the runtime's layers, and cache tiles as they're returned by the contained instance, before you pass them back to the AGSMapView. &lt;A href="https://github.com/nixta/coreimage-tiled-layer-ios"&gt;This repository&lt;/A&gt;‌ does a similar thing, but it applies a Core Image Filter to each tile before passing it on rather than caching it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you would need to carefully consider how to handle cache cleanup and constraint. What do you eject from the cache when memory constraints start getting hit: Least used? Oldest in cache? Furthest from current extent? Furthest from current zoom? Do you eject groups of tiles at once, or individual tiles - you probably want to consider contiguous areas. Doubtless the best solution would be some combination of all of those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: Even if you came up with a good caching strategy, to do this against one of the Esri provided basemap layers would, unfortunately, currently be against the licensing terms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Jan 2015 18:51:46 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2015-01-17T18:51:46Z</dc:date>
    <item>
      <title>Is API possible to auto cache tiledmapservice ?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/is-api-possible-to-auto-cache-tiledmapservice/m-p/32276#M332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I would like to cache of tiledmapservice but I don't want to export tiled or use local tile.&lt;/P&gt;&lt;P&gt;Can it auto cache when I pan or zoom map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 03:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/is-api-possible-to-auto-cache-tiledmapservice/m-p/32276#M332</guid>
      <dc:creator>ItthisakPhueaksri</dc:creator>
      <dc:date>2015-01-15T03:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is API possible to auto cache tiledmapservice ?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/is-api-possible-to-auto-cache-tiledmapservice/m-p/32277#M333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;You could create a custom tiled layer which contains an instance of the runtime's layers, and cache tiles as they're returned by the contained instance, before you pass them back to the AGSMapView. &lt;A href="https://github.com/nixta/coreimage-tiled-layer-ios"&gt;This repository&lt;/A&gt;‌ does a similar thing, but it applies a Core Image Filter to each tile before passing it on rather than caching it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you would need to carefully consider how to handle cache cleanup and constraint. What do you eject from the cache when memory constraints start getting hit: Least used? Oldest in cache? Furthest from current extent? Furthest from current zoom? Do you eject groups of tiles at once, or individual tiles - you probably want to consider contiguous areas. Doubtless the best solution would be some combination of all of those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: Even if you came up with a good caching strategy, to do this against one of the Esri provided basemap layers would, unfortunately, currently be against the licensing terms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 18:51:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/is-api-possible-to-auto-cache-tiledmapservice/m-p/32277#M333</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2015-01-17T18:51:46Z</dc:date>
    </item>
  </channel>
</rss>

