AnsweredAssumed Answered

agsjs TOC does not work with feature linked annotation layer

Question asked by linch12 on Apr 7, 2016
Latest reply on Jul 21, 2016 by bsvensson-esristaff

I am using the agsjs TOC control for my ArcGIS server javascript API project. it works great except that if the dynamiclayer contains feature linked annoation layers, the control is broke. fired up debug shows TOC.js  line 633 "esri.request error callback. Is this error legit?"

Once the annotation layers were removed, the TOC works great. Anyone had the same problem? I don't want to redo all the map services because of this. we have quite a few map service using feature linked annotation layers extensively.

Any help would be appreciated.

this is the link to the TOC, https://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109

update: tried ESRI legend for javascript API, it ignored all feature linked annotation layers by default. Does that mean FL annotation layers not supported at all? however, the custom TOC built in silverlight works though. Anyone out there can help? Thanks very much

Outcomes