In version 3.4, Legend dijit is unable to generate legend when map service contains annotation layer. In older version 3.1, it was working fine. Is it a known issue?
It is a know issue at v3.4. The legend dijit fails to load when making use of ArcGIS Dynamic Map Service with annotation layer. Unfortunately there is no workaround documented at this point.
I am also experiencing this issue. It works fine in 3.3 but when targeting the 3.4 version of the API it crashes the legend when attempting to load any map services with annotations. I am also running 10.1 SP1. Do you guys think you will have a work around for this or will you wait until 3.5 to resolve the issue? Thanks,
It should be officially releasing soon (Maybe in a week or two). You can still reference the new api and get this to work. Just change the version number in your existing code to 3.5.