I am attempting to filter out data on the map (draw/export) inside a web application using the 3.x JS API but have discovered that I cannot seem to filter out data from a feature linked annotation layer. The reason appears to be due to the fact that the display for the Annotation Layer is based on the "Default" sublayer/representation that is being used. (As seen in the rest end point for the map service showing up as Annotation Sublayer) In a dynamic map service this shows up as a separate layer, but this separate layer does not contain any of the attributes to filter on.
I've attempted to set the filter on the sublayer despite the missing attributes using LayerDef property as well as definitionExpression in the dynamicLayers property, but without success.
Is anyone aware of a way to somehow force the sublayer of an annotation layer to respect a definition expression applied to the parent layer? I'm beginning to think this may just be something that doesn't work in the 3.x API / Dynamic Map Service.
Thanks in advance!