AnsweredAssumed Answered

Problem consuming Annotation Layer: "invalid response"

Question asked by Pscovis on Oct 9, 2019
Latest reply on Oct 10, 2019 by MBranscomb-esristaff

I'm trying to learn how to consume an "Annotation Layer" from the UWP Runtime.  My first thought was to use the AnnotationLayer object in the same way that I had used "FeatureLayer" before.  

 

Uri uri = new Uri(_AnnotationUri.ToString() + "/" + _AnnotationLayerId.ToString());
_AnnotationLayer = new AnnotationLayer(uri);
_AnnotationLayer.IsVisible = true;
_MapView.Map.OperationalLayers.Add(_AnnotationLayer);

await _AnnotationLayer.LoadAsync();

 

However, this gives an error "invalid response" on the last line, with no further information.  Am I doing this correctly?

 

I watched the traffic in Fiddler, and it seems that it is dropping off the layer id in the request uri.  The response looks like a description of all the layers on the service, not just the one I was after.  This would account for the "invalid response".  But what is the correct way to load and display an Annotation Layer then?  

 

Thanks for any help.

Outcomes