<?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 What is the effect of DPI in TileInfo in ServiceImageTiledLayer? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/what-is-the-effect-of-dpi-in-tileinfo-in/m-p/135674#M990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used code like this to create a tileinfo for my custom tiled layer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;static public double &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;resolution&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;zoom) {
    &lt;SPAN style="color: #cc7832;"&gt;return &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;INITIALRESOLUTION &lt;/SPAN&gt;/ Math.&lt;SPAN style="font-style: italic;"&gt;pow&lt;/SPAN&gt;(&lt;SPAN style="color: #6897bb;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;zoom)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;SPAN style="color: #cc7832;"&gt;public static &lt;/SPAN&gt;TileInfo &lt;SPAN style="color: #ffc66d;"&gt;CreateTileInfo&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;minZoom&lt;SPAN style="color: #cc7832;"&gt;, int &lt;/SPAN&gt;maxZoom)&lt;BR /&gt;{&lt;BR /&gt; &lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;dpi = &lt;SPAN style="color: #6897bb;"&gt;96&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;ArrayList&amp;lt;LevelOfDetail&amp;gt; levels = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;ArrayList&amp;lt;&amp;gt;()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; for &lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;i = minZoom&lt;SPAN style="color: #cc7832;"&gt;; &lt;/SPAN&gt;i &amp;lt;= maxZoom&lt;SPAN style="color: #cc7832;"&gt;; &lt;/SPAN&gt;i++)&lt;BR /&gt; {&lt;BR /&gt; &lt;SPAN style="color: #cc7832;"&gt;double &lt;/SPAN&gt;resolution = &lt;SPAN style="font-style: italic;"&gt;resolution(i)&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; double &lt;/SPAN&gt;scale = resolution * dpi * &lt;SPAN style="color: #6897bb;"&gt;39.37&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;LevelOfDetail l = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;LevelOfDetail(i&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;resolution&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;scale)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;levels.add(l)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;}&lt;BR /&gt; &lt;SPAN style="color: #cc7832;"&gt;return new &lt;/SPAN&gt;TileInfo(dpi&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;TileInfo.ImageFormat.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;PNG&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;levels&lt;SPAN style="color: #cc7832;"&gt;, new &lt;/SPAN&gt;Point(-&lt;SPAN style="color: #6897bb;"&gt;20037508.342789244&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;20037508.342789244&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;SpatialReferences.&lt;SPAN style="font-style: italic;"&gt;getWebMercator&lt;/SPAN&gt;())&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;SpatialReferences.&lt;SPAN style="font-style: italic;"&gt;getWebMercator&lt;/SPAN&gt;()&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;256&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;256&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why did I choose 96 as the DPI? I don't know, except that it seems every ArcGIS server in existence uses 96 as its dpi.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" title="https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;World_Topo_Map (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; 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;Tile Info:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; 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;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;Height&lt;/STRONG&gt;: 256&lt;/LI&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;Width&lt;/STRONG&gt;: 256&lt;/LI&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;DPI&lt;/STRONG&gt;: 96&lt;/LI&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;Levels of Detail:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;EM&gt;24&lt;/EM&gt;&lt;UL&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;Level ID:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0 [&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/tile/0/0/0" rel="nofollow noopener noreferrer" target="_blank"&gt;Start Tile&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/tile/0/0/0" rel="nofollow noopener noreferrer" target="_blank"&gt;End Tile&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;]&lt;UL&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;Resolution: 156543.03392800014&lt;/LI&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;Scale: 5.91657527591555E8&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;Level ID:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1 [&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/tile/1/0/0" rel="nofollow noopener noreferrer" target="_blank"&gt;Start Tile&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/tile/1/1/1" rel="nofollow noopener noreferrer" target="_blank"&gt;End Tile&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;]&lt;UL&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;Resolution: 78271.51696399994&lt;/LI&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;Scale: 2.95828763795777E8&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;So far so good, but take a look at these that a user sent me.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Other code rendering tiled map." class="jive-emoji image-1 jive-image" height="551" src="https://community.esri.com/legacyfs/online/478048_PRO-14.png" width="310" /&gt;&lt;IMG alt="ArcgisMapView rendering" class="jive-emoji image-2 jive-image" height="552" src="https://community.esri.com/legacyfs/online/478085_XE-14.png" width="311" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the left is a custom map view invented in house. On the right, one using ArcGIS Android SDK.&lt;/P&gt;&lt;P&gt;Both of them say 14, but it has a different meaning.&lt;/P&gt;&lt;P&gt;On the left, it is a one to one pixel ratio. 14 means LOD 14 of the tile server.&lt;/P&gt;&lt;P&gt;On the right, 14 actually means Scale of 1:&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; 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; display: inline !important; float: none;"&gt;36111.909643.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; 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; display: inline !important; float: none;"&gt;But you must be taking into account the dpi of 96 vs whatever the screen dpi is. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; 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; display: inline !important; float: none;"&gt;I theorized that if I set the dpi to exactly what the device dpi is - in my case 576, they would look the same. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; 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; display: inline !important; float: none;"&gt;I cannot make that work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; 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; display: inline !important; float: none;"&gt;I do not think setting it to the screen dpi is best. But for some map sources, 96 may not be the optimal number, right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 07:34:06 GMT</pubDate>
    <dc:creator>NathanMellor</dc:creator>
    <dc:date>2021-12-11T07:34:06Z</dc:date>
    <item>
      <title>What is the effect of DPI in TileInfo in ServiceImageTiledLayer?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/what-is-the-effect-of-dpi-in-tileinfo-in/m-p/135674#M990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used code like this to create a tileinfo for my custom tiled layer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;static public double &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;resolution&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;zoom) {
    &lt;SPAN style="color: #cc7832;"&gt;return &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;INITIALRESOLUTION &lt;/SPAN&gt;/ Math.&lt;SPAN style="font-style: italic;"&gt;pow&lt;/SPAN&gt;(&lt;SPAN style="color: #6897bb;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;zoom)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;SPAN style="color: #cc7832;"&gt;public static &lt;/SPAN&gt;TileInfo &lt;SPAN style="color: #ffc66d;"&gt;CreateTileInfo&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;minZoom&lt;SPAN style="color: #cc7832;"&gt;, int &lt;/SPAN&gt;maxZoom)&lt;BR /&gt;{&lt;BR /&gt; &lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;dpi = &lt;SPAN style="color: #6897bb;"&gt;96&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;ArrayList&amp;lt;LevelOfDetail&amp;gt; levels = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;ArrayList&amp;lt;&amp;gt;()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; for &lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;i = minZoom&lt;SPAN style="color: #cc7832;"&gt;; &lt;/SPAN&gt;i &amp;lt;= maxZoom&lt;SPAN style="color: #cc7832;"&gt;; &lt;/SPAN&gt;i++)&lt;BR /&gt; {&lt;BR /&gt; &lt;SPAN style="color: #cc7832;"&gt;double &lt;/SPAN&gt;resolution = &lt;SPAN style="font-style: italic;"&gt;resolution(i)&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; double &lt;/SPAN&gt;scale = resolution * dpi * &lt;SPAN style="color: #6897bb;"&gt;39.37&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;LevelOfDetail l = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;LevelOfDetail(i&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;resolution&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;scale)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;levels.add(l)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;}&lt;BR /&gt; &lt;SPAN style="color: #cc7832;"&gt;return new &lt;/SPAN&gt;TileInfo(dpi&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;TileInfo.ImageFormat.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;PNG&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;levels&lt;SPAN style="color: #cc7832;"&gt;, new &lt;/SPAN&gt;Point(-&lt;SPAN style="color: #6897bb;"&gt;20037508.342789244&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;20037508.342789244&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;SpatialReferences.&lt;SPAN style="font-style: italic;"&gt;getWebMercator&lt;/SPAN&gt;())&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;SpatialReferences.&lt;SPAN style="font-style: italic;"&gt;getWebMercator&lt;/SPAN&gt;()&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;256&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;256&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why did I choose 96 as the DPI? I don't know, except that it seems every ArcGIS server in existence uses 96 as its dpi.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" title="https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;World_Topo_Map (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; 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;Tile Info:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; 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;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;Height&lt;/STRONG&gt;: 256&lt;/LI&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;Width&lt;/STRONG&gt;: 256&lt;/LI&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;DPI&lt;/STRONG&gt;: 96&lt;/LI&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;Levels of Detail:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;EM&gt;24&lt;/EM&gt;&lt;UL&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;Level ID:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0 [&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/tile/0/0/0" rel="nofollow noopener noreferrer" target="_blank"&gt;Start Tile&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/tile/0/0/0" rel="nofollow noopener noreferrer" target="_blank"&gt;End Tile&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;]&lt;UL&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;Resolution: 156543.03392800014&lt;/LI&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;Scale: 5.91657527591555E8&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;&lt;STRONG&gt;Level ID:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1 [&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/tile/1/0/0" rel="nofollow noopener noreferrer" target="_blank"&gt;Start Tile&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/tile/1/1/1" rel="nofollow noopener noreferrer" target="_blank"&gt;End Tile&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;]&lt;UL&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;Resolution: 78271.51696399994&lt;/LI&gt;&lt;LI style="padding: 0px 0px 3px;"&gt;Scale: 2.95828763795777E8&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;So far so good, but take a look at these that a user sent me.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Other code rendering tiled map." class="jive-emoji image-1 jive-image" height="551" src="https://community.esri.com/legacyfs/online/478048_PRO-14.png" width="310" /&gt;&lt;IMG alt="ArcgisMapView rendering" class="jive-emoji image-2 jive-image" height="552" src="https://community.esri.com/legacyfs/online/478085_XE-14.png" width="311" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the left is a custom map view invented in house. On the right, one using ArcGIS Android SDK.&lt;/P&gt;&lt;P&gt;Both of them say 14, but it has a different meaning.&lt;/P&gt;&lt;P&gt;On the left, it is a one to one pixel ratio. 14 means LOD 14 of the tile server.&lt;/P&gt;&lt;P&gt;On the right, 14 actually means Scale of 1:&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; 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; display: inline !important; float: none;"&gt;36111.909643.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; 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; display: inline !important; float: none;"&gt;But you must be taking into account the dpi of 96 vs whatever the screen dpi is. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; 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; display: inline !important; float: none;"&gt;I theorized that if I set the dpi to exactly what the device dpi is - in my case 576, they would look the same. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; 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; display: inline !important; float: none;"&gt;I cannot make that work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; 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; display: inline !important; float: none;"&gt;I do not think setting it to the screen dpi is best. But for some map sources, 96 may not be the optimal number, right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/what-is-the-effect-of-dpi-in-tileinfo-in/m-p/135674#M990</guid>
      <dc:creator>NathanMellor</dc:creator>
      <dc:date>2021-12-11T07:34:06Z</dc:date>
    </item>
  </channel>
</rss>

