Select to view content in your preferred language

[RTCImageTiledLayer tiledSublayers]: unrecognized selector under 100.2.1

1316
7
06-04-2018 11:08 AM
mh10
by
Occasional Contributor

Hi

After upgrading from 100.1 to 100.2.1 our existing code is now failing when trying to call AGSArcGISTiledLayer initWithTileInfo

@interface TileLayer : AGSArcGISTiledLayer

self = [super initWithTileInfo:tileInfo fullExtent:envelope];

get error:
[RTCImageTiledLayer tiledSublayers]: unrecognized selector sent to instance 0x11baeea10

#0 0x00000001814205b4 in objc_exception_throw ()
#1 0x0000000182274098 in -[NSObject(NSObject) doesNotRecognizeSelector:] ()
#2 0x000000018226c5c8 in ___forwarding___ ()
#3 0x000000018215241c in _CF_forwarding_prep_0 ()
#4 0x0000000102e71d4c in -[AGSArcGISTiledLayer tiledSublayers] at /Users/jenkins/100.2.1/daily_ios_cocoa_api_release/Cocoa/API/Common/Layer/ArcGIS/AGSArcGISTiledLayer.m:183
#5 0x0000000102e715a0 in -[AGSArcGISTiledLayer initWithRTCObject:mapServiceInfo:] at /Users/jenkins/100.2.1/daily_ios_cocoa_api_release/Cocoa/API/Common/Layer/ArcGIS/AGSArcGISTiledLayer.m:91
#6 0x0000000102d94724 in -[AGSImageTiledLayer initWithTileInfo:fullExtent:] at /Users/jenkins/100.2.1/daily_ios_cocoa_api_release/Cocoa/API/Common/Layer/AGSImageTiledLayer.m:58
#7 0x000000010146f4e8 in -[TileLayer init] at /TileLayer.m:103

0 Kudos
7 Replies
Nicholas-Furness
Esri Regular Contributor

Could you provide some more info please so we can try to reproduce this?

For example, what are the tileInfo and fullExtent parameters, or does it occur across a range of values?

0 Kudos
mh10
by
Occasional Contributor

I haven't tried any other values

int resolutionLevels = 20;

NSMutableArray *levelsOfDetail = [[NSMutableArray alloc] init];

for (int i=0; i < resolutionLevels;i++)
{
double resolution = 156543.032 / pow(2,i);
double scale = 5.91657527591555E8 / pow(2,i);

[levelsOfDetail addObject:[AGSLevelOfDetail levelOfDetailWithLevel:i resolution:resolution scale:scale]];
}

AGSPoint *origin = [AGSPoint pointWithX:-20037508.342787 y:20037508.342787 spatialReference:AGSSpatialReference.webMercator];

AGSEnvelope *envelope = [AGSEnvelope envelopeWithXMin:-20037507.0671618 yMin:-19971868.8804086 xMax:20037507.0671618 yMax:19971868.8804086 spatialReference:AGSSpatialReference.webMercator];

AGSTileInfo *tileInfo = [AGSTileInfo tileInfoWithDPI:96
format:AGSTileImageFormatPNG32
levelsOfDetail:levelsOfDetail
origin:origin
spatialReference:AGSSpatialReference.webMercator
tileHeight:256
tileWidth:256];

self = [super initWithTileInfo:tileInfo
fullExtent:envelope];

Nicholas-Furness
Esri Regular Contributor

Thanks. I'm able to reproduce this here. We'll look into it.

0 Kudos
Nicholas-Furness
Esri Regular Contributor

Would you be able to subclass from AGSImageTiledLayer instead, or is there specific AGSArcGISTiledLayer functionality that you need?

0 Kudos
Nicholas-Furness
Esri Regular Contributor

Hi m h‌,

Were you able to get this working by inheriting from AGSImageTiledLayer?

Nick.

0 Kudos
mh10
by
Occasional Contributor

Hi

Sorry didn't see your replies, just tried switching to AGSImageTiledLayer and it works ok, we weren't using anything in AGSArcGISTiledLayer.

thanks a lot!

0 Kudos
Nicholas-Furness
Esri Regular Contributor

Good to know. Would you mind flagging the question as answered? It'll help others when browsing the questions. Thanks!

0 Kudos