AnsweredAssumed Answered

Android - Loading a custom XYZ .png Map Tile from a URL

Question asked by ihazbackup on Apr 23, 2016
Latest reply on May 13, 2016 by JerryGarcia

Hello, I am new to this SDK and I'm building an android application using ArcGIS android SDK.


The problem is, I need to find out how to load a custom XYZ map tiles from a URL



I am currently looking at extending from TiledServiceLayer and overriding the getTile(level,col,row), but I have no idea how to build it.

Some examples I've looked at:

  1. Mozilla Stumbler layer: loading TMS and XYZ tilelayers in QGIS | . The example uses the QGIS application
  2. Adding tile layers to your web map | ArcGIS Blog . The example also uses ArcGIS online
  3. Creating a custom TileServiceLayer in ArcGIS Android | ArcGIS Blog . 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)


If there's a sample code or a lead on how to do it, I'd greatly appreciate it

Thanks before