Add Annotation Layers to JS Application

2196
1
05-04-2017 07:57 PM
LindaDunklee
New Contributor III

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?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

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.