Skip to content

Commit 26a1465

Browse files
authored
Updates to Tiled Layer to show support for .tkpx files (#321)
* Updates to tiled layer, including .tpkx support * Update tile cache readme to include support .tpkx
1 parent 89208a9 commit 26a1465

File tree

2 files changed

+33
-19
lines changed

2 files changed

+33
-19
lines changed
Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
1-
<h1>Tile Cache</h1>
1+
<h1>Tile cache</h1>
22

33
<p>Create a basemap from a local tile cache.</p>
44

55
<p><img src="TileCache.png"/></p>
66

7+
<h2>Use case</h2>
8+
9+
<p>An <code>ArcGISTiledLayer</code> consumes raster tiles provided by an ArcGIS service or a tile package (.tpk & .tpkx). Dividing a raster into tiles allows the map to provide relevant tiles and level of detail to the user when panning and zooming.</p>
10+
711
<h2>How it works</h2>
812

9-
<p>To create a <code>Basemap</code> from a local tile package:</p>
1013
<ol>
11-
<li>Create a <code>TileCache</code>, specifying the path to the local tile package</li>
12-
<li>Create a <code>ArcGISTiledLayerLayer</code> with the tile cache</li>
13-
<li>Create a <code>Basemap</code> with the tiled layer</li>
14-
<li>Create a <code>ArcGISMap</code> with the basemap and set it to a <code>MapView</code></li>
14+
<li>Create a <code>TileCache</code>, specifying the path to the local tile package.</li>
15+
<li>Create a <code>ArcGISTiledLayer</code> with the tile cache.</li>
16+
<li>Create a <code>Basemap</code> with the tiled layer.</li>
17+
<li>Create a <code>ArcGISMap</code> with the basemap and set it to a <code>MapView</code>.</li>
1518
</ol>
1619

1720
<h2>Relevant API</h2>
1821

1922
<ul>
2023
<li>ArcGISMap</li>
2124
<li>ArcGISTiledLayer</li>
22-
<li>Basemap</li>
23-
<li>MapView</li>
2425
<li>TileCache</li>
2526
</ul>
27+
28+
<h2>Additional information</h2>
29+
30+
<p><code>ArcGISTiledLayer</code> supports both .tpk and .tpkx file formats.</p>
31+
32+
<h2>Tags</h2>
33+
34+
<p>layers, tile, TileCache, ArcGISTiledLayer</p>
Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
1-
<h1>Tiled Layer</h1>
1+
<h1>Tiled layer</h1>
22

33
<p>Display tiles from an ArcGIS tile service.</p>
44

5-
<p>This service pre-generates images based on a tiling scheme which allows for rapid ArcGISMap visualization and navigation.
6-
An ArcGISTiledLayer can also be added to the ArcGISMap as a layer but it's best practice to use as a basemap since its purpose is to provide geographical context.</p>
5+
<h2>Use case</h2>
6+
7+
<p>An `ArcGISTiledLayer` consumes raster tiles provided by an ArcGIS service or a tile package (.tpk & .tpkx). Dividing a raster into tiles allows the map to provide relevant tiles and level of detail to the user when panning and zooming, allowing for rapid map visualization and navigation. The service in this sample pre-generates images based on a tiling scheme.</p>
78

89
<p><img src="TiledLayer.png"/></p>
910

1011
<h2>How it works</h2>
1112

12-
<p>To add an <code>ArcGISTiledLayer</code> as a <code>Basemap</code> to an <code>ArcGISMap</code>:</p>
13-
1413
<ol>
15-
<li>Create an ArcGISTiledLayer from a URL.</li>
16-
<li>Create a Basemap passing in the tiled layer from above.</li>
17-
<li>Set basemap to ArcGIS map, <code>ArcGISMap.setBasemap()</code>.</li>
18-
<li>Set map to mapview, <code>MapView.setMap()</code>.</li>
14+
<li>Create an <code>ArcGISTiledLayer</code> object from a URL.</li>
15+
<li>Pass the tiled layer in to a new <code>Basemap</code>.</li>
16+
<li>Set the basemap to an <code>ArcGISMap</code>.</li>
1917
</ol>
2018

2119
<h2>Relevant API</h2>
2220

2321
<ul>
2422
<li>ArcGISMap</li>
2523
<li>ArcGISTiledLayer</li>
26-
<li>Basemap</li>
2724
<li>MapView</li>
28-
</ul>
25+
</ul>
26+
27+
<h2>Additional information</h2>
28+
29+
<p>An <code>ArcGISTiledLayer</code> can also be added to the ArcGISMap as a layer, but it's best practice to use as a basemap since its purpose is to provide geographical context. Tiled Layer supports both .tpk and .tpkx file formats.</p>
30+
31+
<h2>Tags</h2>
32+
33+
<p>layers, tile, ArcGISTiledLayer</p>

0 commit comments

Comments
 (0)