Extending Tiled Service Layer

3701
10
07-22-2013 01:33 PM
JohnCo-Reyes
New Contributor
Has anyone successfully extended a TiledServiceLayer for android? I'm trying to implement one so that I can create a layer from a non arcgis server. I've overridden the getTile(int level, int row, int column) function and have set the full extent, default spatial reference, and tileinfo. The application never calls getTile for some reason though. Is there anything else I need to initialize or override?

I've found this example for SilverLight: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.TiledMapSe...
one for Flex: http://blogs.esri.com/esri/arcgis/2009/03/06/extending-tiled-layers-in-the-arcgis-api-for-flex/
and one for JS: http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm#jssa...
0 Kudos
10 Replies
JohnCo-Reyes
New Contributor
It throws this error which I seems like there's a corrupt memory heap.
08-02 09:21:21.136: A/libc(21513): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 21526 (ProgressDialogT)
08-02 09:21:21.256: I/DEBUG(88): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad

08-02 09:21:21.386: I/DEBUG(88): backtrace:
08-02 09:21:21.386: I/DEBUG(88):     #00  pc 000182ce  /system/lib/libc.so
08-02 09:21:21.386: I/DEBUG(88):     #01  pc 0000dbd4  /system/lib/libc.so (abort+4)
08-02 09:21:21.386: I/DEBUG(88):     #02  pc 00817150  /data/data/mobileapp/lib/libruntimecore_java.so
(__gnu_cxx::__verbose_terminate_handler()+276)

You can try if you like.
For extent you can use Envelope(-180.0, -90.0, 180.0, 90.0).
Spatial Reference: "104903"

double[] resolution = {0.5625, 0.28125, 0.140625, 0.0703125, 0.03515625, 0.017578125, 0.0087890625, 0.00439453125,
0.002197265625}

double[] scale = {2.3639807480314958E8, 1.1819903740157479E8, 5.9099518700787395E7, 2.9549759350393698E7,
1.4774879675196849E7, 7387439.837598424, 3693719.918799212, 1846859.959399606, 923429.979699803}

tileInfo = new TileInfo(new Point(0.0, 0.0), scale, resolution, 9, 96, 512, 512);
0 Kudos