AnsweredAssumed Answered

Problems with showing AGSWMTSLayer on iOS

Question asked by AmelMahmuzic on Apr 6, 2017
Latest reply on Apr 17, 2017 by Yue_Wu-esristaff

Hello Esri Community,


I experience some issues while loading a AGSWMTSLayer on iOS devices. The only thing I see is a grid which shows a user's location. Since the production URL of the map that I use in my project is under NDA, I cannot post it publicly so I've found an equivalent one, which does not work but has the same structure. Here is the code:

#define wmtsURL @""

- (void)viewDidLoad
    [super viewDidLoad];
    self.mapView.layerDelegate = self;
    self.wmtsInfo = [[AGSWMTSInfo alloc] initWithURL: [NSURL URLWithString:wmtsURL]];
    self.wmtsInfo.delegate = self;
- (void) wmtsInfoDidLoad:(AGSWMTSInfo *) wmtsInfo{
    NSArray *layerInfos = [wmtsInfo layerInfos];
    AGSWMTSLayerInfo *layerInfo = [layerInfos objectAtIndex:0];
    self.wmtsLayer = [wmtsInfo wmtsLayerWithLayerInfo:layerInfo andSpatialReference:nil];
    [self.mapView addMapLayer:self.wmtsLayer withName:@"wmts Layer"];


I've also made an equivalent code for Android and a map is loaded. However I still struggle with the iOS ArcGIS SDK. Does anyone experience the same issue?


Thanks in advance.