I am trying to add an annotation layer to a JS application, with URLs structured similar to Layer: ROW Dimensions (ID: 0)
and Layer: ROWDimension (ID: 1) . When I add them as a feature layer, only a black box appears. (I think I am doing this wrong with sublayers or something...) When I add them as a Map Image Layer, I get a CORS error. What is the best way to add these to get the text into the application?
Linda,
The FeatureLayer class does not support Annotation layers. The proper way to display an annotation layer is to add a ArcGISDynamicMapServiceLayer and then ArcGIS server takes care of the Anno rendering and the map server image is returned to the client.