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:
"https://www.orka-mv.de/geodienste/orkamv/wmts/1.0.0/WMTSCapabilities.xml"
- (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.