<?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: Android - Loading a custom XYZ .png Map Tile from a URL in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/450999#M3039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're on the right track with #3.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/android/sample-code/local-mbtiles/" title="https://developers.arcgis.com/android/sample-code/local-mbtiles/"&gt;Local MBTiles | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; is a pretty good example of what I think you're trying to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2016 01:10:16 GMT</pubDate>
    <dc:creator>EricBader</dc:creator>
    <dc:date>2016-05-04T01:10:16Z</dc:date>
    <item>
      <title>Android - Loading a custom XYZ .png Map Tile from a URL</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/450998#M3038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am new to this SDK and I'm building an android application using ArcGIS android SDK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, I need to find out how to load a custom XYZ map tiles from a URL &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(e.g. &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmap.domain.com%2Fstreet_map%2F" rel="nofollow" target="_blank"&gt;http://map.domain.com/street_map/&lt;/A&gt;&lt;SPAN&gt;{z}/{x}/{y}.png). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently looking at extending from TiledServiceLayer and overriding the getTile(level,col,row), but I have no idea how to build it.&lt;/P&gt;&lt;P&gt;Some examples I've looked at:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="http://www.qgis.nl/2014/12/08/mozilla-stumbler-laag-tms-and-xyz-lagen-laden-in-qgis/?lang=en" title="http://www.qgis.nl/2014/12/08/mozilla-stumbler-laag-tms-and-xyz-lagen-laden-in-qgis/?lang=en"&gt;Mozilla Stumbler layer: loading TMS and XYZ tilelayers in QGIS | www.qgis.nl&lt;/A&gt; . The example uses the QGIS application&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://blogs.esri.com/esri/arcgis/2013/03/21/adding-tile-layers-to-your-web-map/" title="https://blogs.esri.com/esri/arcgis/2013/03/21/adding-tile-layers-to-your-web-map/"&gt;Adding tile layers to your web map | ArcGIS Blog&lt;/A&gt; . The example also uses ArcGIS online&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://blogs.esri.com/esri/arcgis/2014/05/05/creating-custom-tileservicelayer-android/" title="https://blogs.esri.com/esri/arcgis/2014/05/05/creating-custom-tileservicelayer-android/"&gt;Creating a custom TileServiceLayer in ArcGIS Android | ArcGIS Blog&lt;/A&gt; . This is probably the closest one with my problem due to the getTile() function, but I still have no idea how to implement it (e.g.. deciding envelopes, extents, and tileinfo)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there's a sample code or a lead on how to do it, I'd greatly appreciate it&lt;/P&gt;&lt;P&gt;Thanks before&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Apr 2016 07:00:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/450998#M3038</guid>
      <dc:creator>JasonChristian</dc:creator>
      <dc:date>2016-04-23T07:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Android - Loading a custom XYZ .png Map Tile from a URL</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/450999#M3039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're on the right track with #3.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/android/sample-code/local-mbtiles/" title="https://developers.arcgis.com/android/sample-code/local-mbtiles/"&gt;Local MBTiles | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; is a pretty good example of what I think you're trying to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 01:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/450999#M3039</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2016-05-04T01:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Android - Loading a custom XYZ .png Map Tile from a URL</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/451000#M3040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;According to the blog on #3, I need to decide the:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   - Spatial Reference of the Data (Spherical Mercator = EPSG 3857)&lt;/P&gt;&lt;P&gt;   - Tile Origin (x=-20037508.34, y=20037508.34 unless overridden in the&lt;/P&gt;&lt;P&gt;   metadata)&lt;/P&gt;&lt;P&gt;   - Number of Levels   (Obtained by querying from the database)&lt;/P&gt;&lt;P&gt;   - Available Scales (Defined by the specification)&lt;/P&gt;&lt;P&gt;   - Available Resolutions (Defined by the specification)&lt;/P&gt;&lt;P&gt;   - Extents of the Layer (whole world unless overridden in metadata)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to ArcGIS, so I don't know what values I should put in to&lt;/P&gt;&lt;P&gt;each variable. In comparison to Google Map, I only have to provide the URL&lt;/P&gt;&lt;P&gt;by overriding it without any data above. I'd appreciate it greatly if u can&lt;/P&gt;&lt;P&gt;provide the explanation to each variable and possible values for them. The&lt;/P&gt;&lt;P&gt;example from blog #3 takes all the value from a database, so I wouldn't&lt;/P&gt;&lt;P&gt;know the real value of it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 05:15:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/451000#M3040</guid>
      <dc:creator>JasonChristian</dc:creator>
      <dc:date>2016-05-04T05:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Android - Loading a custom XYZ .png Map Tile from a URL</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/451001#M3041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UPDATE: I have implemented my own class extending from TiledServiceLayer.&lt;/P&gt;&lt;P&gt;When I add it to my map, it does not execute the getTile() method (the&lt;/P&gt;&lt;P&gt;debug msg does not appear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the data that I have used:&lt;/P&gt;&lt;P&gt;- Spatial reference : 4326&lt;/P&gt;&lt;P&gt;- resolution = {0.5625, 0.28125, 0.140625, 0.0703125, 0.03515625,&lt;/P&gt;&lt;P&gt;0.017578125, 0.0087890625, 0.00439453125, 0.002197265625}&lt;/P&gt;&lt;P&gt;- scale = {2.3639807480314958E8, 1.1819903740157479E8,&lt;/P&gt;&lt;P&gt;5.9099518700787395E7, 2.9549759350393698E7, 1.4774879675196849E7,&lt;/P&gt;&lt;P&gt;7387439.837598424, 3693719.918799212, 1846859.959399606, 923429.979699803}&lt;/P&gt;&lt;P&gt;- zoomLevel = 9&lt;/P&gt;&lt;P&gt;- both extents : -180, -90, 180, 90&lt;/P&gt;&lt;P&gt;- DPI : 96&lt;/P&gt;&lt;P&gt;- tile size = 256 x 256&lt;/P&gt;&lt;P&gt;- The URL of the map:&lt;/P&gt;&lt;P&gt;http://maps.omniscale.net/v2/mobilemenschen-a4e73fda/style.default/&lt;SPAN __jive_macro_name="z"&gt;&lt;/SPAN&gt;/&lt;SPAN __jive_macro_name="x"&gt;&lt;/SPAN&gt;/&lt;SPAN __jive_macro_name="y"&gt;&lt;/SPAN&gt;.png&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set all of the above data in the constructor and have called&lt;/P&gt;&lt;P&gt;super.initLayer(), but the getTile method wasn't called after I added to my&lt;/P&gt;&lt;P&gt;map layer. I couldn't provide my code at the moment, but I followed the&lt;/P&gt;&lt;P&gt;example from here https://community.esri.com/thread/77765, but without the&lt;/P&gt;&lt;P&gt;database connection ( I just added the data explicitly to the&lt;/P&gt;&lt;P&gt;setFullExtent(), setSpatialReference(), setTileInfo(), etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated, thanks before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Wed, May 4, 2016 at 7:14 AM, Jason Christian &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 09:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/451001#M3041</guid>
      <dc:creator>JasonChristian</dc:creator>
      <dc:date>2016-05-05T09:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Android - Loading a custom XYZ .png Map Tile from a URL</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/451002#M3042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that the link to the map is not correctly shown :&lt;/P&gt;&lt;P&gt;http://maps.omniscale.net/v2/mobilemenschen-a4e73fda/style.default/&lt;SPAN __jive_macro_name="z"&gt;&lt;/SPAN&gt;/&lt;SPAN __jive_macro_name="x"&gt;&lt;/SPAN&gt;/&lt;SPAN __jive_macro_name="y"&gt;&lt;/SPAN&gt;.png&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, May 5, 2016 at 11:48 AM, Jason Christian &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 09:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/451002#M3042</guid>
      <dc:creator>JasonChristian</dc:creator>
      <dc:date>2016-05-05T09:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Android - Loading a custom XYZ .png Map Tile from a URL</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/451003#M3043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas to consume ArcGIS services into MapBox JS API.&amp;nbsp; Seems to be a similar issue:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/176925"&gt;Consume ArcGIS services in Mapbox GL API?&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 13:12:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-loading-a-custom-xyz-png-map-tile-from-a/m-p/451003#M3043</guid>
      <dc:creator>JerryGarcia</dc:creator>
      <dc:date>2016-05-13T13:12:48Z</dc:date>
    </item>
  </channel>
</rss>

