Using ArcGISRuntime 100.15 and based on the ESRI Display Annotation Layer sample I have an app with the following code for displaying an annotation layer:
var map = new Map(BasemapStyle.ArcGISImagery){
InitialViewpoint = new Viewpoint(-9167600, 3461570, Scale)};
var annoLayer = new AnnotationLayer(new Uri(UriText));
map.OperationalLayers.Add(annoLayer);
annoLayer.Loaded += (object sender, EventArgs e) => {
var al = sender as AnnotationLayer;
Trace.WriteLine($"{al.Name} loaded; visible: {al.IsVisible}; IsVisibleAtScale: {al.IsVisibleAtScale(Scale)}");
};
MyMapView.Map = map;The 'Loaded' event fires and indicates that the annotation layer loaded without error, but it is not displaying on the map. When loaded, the SublayerContents property is empty, which seems suspicious since the annotation layer does have sublayers.
The annotation layer displays properly in ArcGIS Pro and in the online map viewer.
Any ideas on what might be wrong or what to look at next?