<?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 ArcGISvectorTileLayer: What's an ItemResourceCache and how do I make one? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisvectortilelayer-what-s-an-itemresourcecache/m-p/129656#M932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the constructors for ArcGISVectorTiledLayer takes a vectorTileCache. &lt;/P&gt;&lt;P&gt;I'm hoping this one will let me specify a style for the vtpk without recreating an entire vtpk.&lt;/P&gt;&lt;DIV class="" style="margin: 0px 0px 1em; padding: 0px; border: 0px; color: #333333; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;H4 class="" style="margin: 1.5em 0px 0.5em; padding: 3px 95px 3px 3px; border: 0px; font-size: 1.1em; background-color: #e2e2e2; color: #222222;"&gt;&lt;SPAN class="" style="font-size: 0.9em; font-weight: normal;"&gt;public&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="margin-right: 2px;"&gt;ArcGISVectorTiledLayer&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 0.9em; font-weight: normal;"&gt;(&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/VectorTileCache.html" style="color: #006699;"&gt;VectorTileCache&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;vectorTileCache,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/mapping/ItemResourceCache.html" style="color: #006699;"&gt;ItemResourceCache&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;itemResourceCache)&lt;/SPAN&gt;&lt;/H4&gt;&lt;DIV class="" style="margin: -25px 0px 0px; padding: 0px 7px; border: 0px; font-size: 0.8em; font-weight: normal; color: #999999; float: right;"&gt;&lt;DIV style="margin: 0px; padding: 0px; border: 0px;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="margin: 0.5em 0.25em; padding: 0px; border: 0px;"&gt;&lt;DIV class="" style="margin: 0.25em 0px 0.75em; padding: 0px; border: 0px; line-height: 1em;"&gt;&lt;P style="margin: 0.5em 0px; padding: 0px; border: 0px; line-height: 1.3em;"&gt;Creates a new ArcGISVectorTiledLayer from the specified VectorTileCache and ItemResourceCache objects. If itemResourceCache is null, it is equivalent to the constructor ArcGISVectorTiledLayer(VectorTileCache)&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="margin: 0.5em 1em; padding: 0px; border: 0px;"&gt;&lt;H5 class="" style="margin: 0px 0px 0.25em; padding: 0px; border: 0px; font-size: 1em;"&gt;Parameters&lt;/H5&gt;&lt;TABLE style="margin: 0px 0px 1em 1em; padding: 0px; border: 0px; font-size: 1em; border-collapse: collapse; empty-cells: show;"&gt;&lt;TBODY style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TR style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TH style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal; font-style: italic;"&gt;vectorTileCache&lt;/TH&gt;&lt;TD style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal;"&gt;the vector tile cache to use&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TH style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal; font-style: italic;"&gt;itemResourceCache&lt;/TH&gt;&lt;TD style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal;"&gt;the vector tile style to use&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="" style="margin: 0.5em 1em; padding: 0px; border: 0px;"&gt;&lt;H5 class="" style="margin: 0px 0px 0.25em; padding: 0px; border: 0px; font-size: 1em;"&gt;Throws&lt;/H5&gt;&lt;TABLE style="margin: 0px 0px 1em 1em; padding: 0px; border: 0px; font-size: 1em; border-collapse: collapse; empty-cells: show;"&gt;&lt;TBODY style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TR style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TH style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal; font-style: italic;"&gt;IllegalArgumentException&lt;/TH&gt;&lt;TD style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal;"&gt;if vectorTileCache is null.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="margin: 0px 0px 1em 1em; padding: 0px; border: 0px; font-size: 0.9em; border-collapse: collapse; empty-cells: show; width: 1347px; color: #333333; font-family: arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;TBODY style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TR class="" style="margin: 0px; padding: 0px; border: 0px; background-color: #f6f6f6;"&gt;&lt;TD class="" style="margin: 0px; padding: 6px 12px; border: 1px solid #cccccc; text-align: left; vertical-align: top; background-color: inherit;" width="100%"&gt;&lt;SPAN class="" style="margin-right: 2px;"&gt;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/mapping/ItemResourceCache.html#ItemResourceCache(java.lang.String)" style="color: #006699; text-decoration: none;"&gt;ItemResourceCache&lt;/A&gt;&lt;/SPAN&gt;(String path)&lt;DIV class="" style="margin: 0px; padding: 3px 1em 0px; border: 0px;"&gt;Constructs an ItemResourceCache with absolute path to a directory containing item resources.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;So how is the directory structured? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best guess so far:&lt;/P&gt;&lt;P&gt;If I unzip a .vtpk, one of the folders inside is called p2/resources&lt;/P&gt;&lt;P&gt;Inside that folder there is:&lt;/P&gt;&lt;P&gt;fonts&lt;/P&gt;&lt;P&gt;info&lt;/P&gt;&lt;P&gt;sprites&lt;/P&gt;&lt;P&gt;styles&lt;/P&gt;&lt;P&gt;root.json.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the structure I need to recreate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there are no examples nor documentation on this, I though it was worth asking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2018 22:30:34 GMT</pubDate>
    <dc:creator>NathanMellor</dc:creator>
    <dc:date>2018-05-30T22:30:34Z</dc:date>
    <item>
      <title>ArcGISvectorTileLayer: What's an ItemResourceCache and how do I make one?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisvectortilelayer-what-s-an-itemresourcecache/m-p/129656#M932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the constructors for ArcGISVectorTiledLayer takes a vectorTileCache. &lt;/P&gt;&lt;P&gt;I'm hoping this one will let me specify a style for the vtpk without recreating an entire vtpk.&lt;/P&gt;&lt;DIV class="" style="margin: 0px 0px 1em; padding: 0px; border: 0px; color: #333333; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;H4 class="" style="margin: 1.5em 0px 0.5em; padding: 3px 95px 3px 3px; border: 0px; font-size: 1.1em; background-color: #e2e2e2; color: #222222;"&gt;&lt;SPAN class="" style="font-size: 0.9em; font-weight: normal;"&gt;public&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="margin-right: 2px;"&gt;ArcGISVectorTiledLayer&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 0.9em; font-weight: normal;"&gt;(&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/VectorTileCache.html" style="color: #006699;"&gt;VectorTileCache&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;vectorTileCache,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/mapping/ItemResourceCache.html" style="color: #006699;"&gt;ItemResourceCache&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;itemResourceCache)&lt;/SPAN&gt;&lt;/H4&gt;&lt;DIV class="" style="margin: -25px 0px 0px; padding: 0px 7px; border: 0px; font-size: 0.8em; font-weight: normal; color: #999999; float: right;"&gt;&lt;DIV style="margin: 0px; padding: 0px; border: 0px;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="margin: 0.5em 0.25em; padding: 0px; border: 0px;"&gt;&lt;DIV class="" style="margin: 0.25em 0px 0.75em; padding: 0px; border: 0px; line-height: 1em;"&gt;&lt;P style="margin: 0.5em 0px; padding: 0px; border: 0px; line-height: 1.3em;"&gt;Creates a new ArcGISVectorTiledLayer from the specified VectorTileCache and ItemResourceCache objects. If itemResourceCache is null, it is equivalent to the constructor ArcGISVectorTiledLayer(VectorTileCache)&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="margin: 0.5em 1em; padding: 0px; border: 0px;"&gt;&lt;H5 class="" style="margin: 0px 0px 0.25em; padding: 0px; border: 0px; font-size: 1em;"&gt;Parameters&lt;/H5&gt;&lt;TABLE style="margin: 0px 0px 1em 1em; padding: 0px; border: 0px; font-size: 1em; border-collapse: collapse; empty-cells: show;"&gt;&lt;TBODY style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TR style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TH style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal; font-style: italic;"&gt;vectorTileCache&lt;/TH&gt;&lt;TD style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal;"&gt;the vector tile cache to use&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TH style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal; font-style: italic;"&gt;itemResourceCache&lt;/TH&gt;&lt;TD style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal;"&gt;the vector tile style to use&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="" style="margin: 0.5em 1em; padding: 0px; border: 0px;"&gt;&lt;H5 class="" style="margin: 0px 0px 0.25em; padding: 0px; border: 0px; font-size: 1em;"&gt;Throws&lt;/H5&gt;&lt;TABLE style="margin: 0px 0px 1em 1em; padding: 0px; border: 0px; font-size: 1em; border-collapse: collapse; empty-cells: show;"&gt;&lt;TBODY style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TR style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TH style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal; font-style: italic;"&gt;IllegalArgumentException&lt;/TH&gt;&lt;TD style="margin: 0px; padding: 2px 10px; border: none; text-align: left; vertical-align: top; background-color: #ffffff; font-weight: normal;"&gt;if vectorTileCache is null.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="margin: 0px 0px 1em 1em; padding: 0px; border: 0px; font-size: 0.9em; border-collapse: collapse; empty-cells: show; width: 1347px; color: #333333; font-family: arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;TBODY style="margin: 0px; padding: 0px; border: 0px;"&gt;&lt;TR class="" style="margin: 0px; padding: 0px; border: 0px; background-color: #f6f6f6;"&gt;&lt;TD class="" style="margin: 0px; padding: 6px 12px; border: 1px solid #cccccc; text-align: left; vertical-align: top; background-color: inherit;" width="100%"&gt;&lt;SPAN class="" style="margin-right: 2px;"&gt;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/mapping/ItemResourceCache.html#ItemResourceCache(java.lang.String)" style="color: #006699; text-decoration: none;"&gt;ItemResourceCache&lt;/A&gt;&lt;/SPAN&gt;(String path)&lt;DIV class="" style="margin: 0px; padding: 3px 1em 0px; border: 0px;"&gt;Constructs an ItemResourceCache with absolute path to a directory containing item resources.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;So how is the directory structured? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best guess so far:&lt;/P&gt;&lt;P&gt;If I unzip a .vtpk, one of the folders inside is called p2/resources&lt;/P&gt;&lt;P&gt;Inside that folder there is:&lt;/P&gt;&lt;P&gt;fonts&lt;/P&gt;&lt;P&gt;info&lt;/P&gt;&lt;P&gt;sprites&lt;/P&gt;&lt;P&gt;styles&lt;/P&gt;&lt;P&gt;root.json.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the structure I need to recreate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there are no examples nor documentation on this, I though it was worth asking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 22:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisvectortilelayer-what-s-an-itemresourcecache/m-p/129656#M932</guid>
      <dc:creator>NathanMellor</dc:creator>
      <dc:date>2018-05-30T22:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISvectorTileLayer: What's an ItemResourceCache and how do I make one?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisvectortilelayer-what-s-an-itemresourcecache/m-p/1163579#M5726</link>
      <description>&lt;P&gt;Hi Nathan&lt;/P&gt;&lt;P&gt;Did you ever work out how to do this?&lt;/P&gt;&lt;P&gt;I have a similar requirement to apply a different style to a a vector tile package. It seems like it's possible, but there's not much info on what the ItemResourceCache should look like!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 17:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisvectortilelayer-what-s-an-itemresourcecache/m-p/1163579#M5726</guid>
      <dc:creator>JohnFannon</dc:creator>
      <dc:date>2022-04-12T17:05:10Z</dc:date>
    </item>
  </channel>
</rss>

