Hi,
I am trying to extend FeatureLayer in order to add minor, but important to me, functions and properties.
When I do create and instance of the FeatureLayer sublayer, I can see no legend, where I do see a legend when I use the generic FeatureLayer.
Even this example of a Sublayer for Feature layer does not show any symbols in the legend:
@subclass("myproj.classes.layers.CustomFeatureLayer")
export class CustomFeatureLayer extends FeatureLayer {
//Purposely left empty to test legend
}
What should I do to make a subclass of a FeatureLayer recognizable by the legend?
Is there a function I can override in the Legend?
Is there something I can add in the ActiveLayerInfo object to make the Legend pay attention?