AGSGraphicsLayer* graphicsLayer2 = [AGSGraphicsLayer graphicsLayer];
[self.mapView addMapLayer:graphicsLayer2 withName:@"Graphics Layer 2"];
self.sketchLayer = [AGSSketchGraphicsLayer graphicsLayer];
[self.mapView addMapLayer:self.sketchLayer withName:@"Sketch layer"];
Solved! Go to Solution.
How you are chaining the base map? You should use AGSMapView's insertMapLayer:withName:atIndex: method and insert base layer at index 0.
Regards,
Nimesh