A community-supported open source mapping framework built with the Esri JavaScript API and the Dojo Toolkit - https://cmv.io/
better
since I don't use the FeatureTable at all and don't know your use case. Here is an example of of using FeatureTable with CMV.
@ERS-Long The legend for Feature layers in the layerControl widget isn't a typical legend. The symbols are built from the layer's render when the layerControl is first instantiated. I forget the reasoning behind this approach (I didn't write it).
The first workaround that comes to mind is remove the layer from the layer control and add it again. I'm not sure if this will work since the symbols are built from the layer's renderer and may ignore the layer defs (at least that is how it looks like it will behave based on a quick look at the code).
Second possibility is to rely on the Legend widget. You can add noLegend: true
to the layerControlOptions
for that layer so it doesn't show the Legend in the layerControl widget.
dist
folder is no longer in the path.