Using Esri JavaScript API 3.27, we are giving end users the ability to change the symbology for dynamic map service map layers in a web app using the SymbolStyler. Is it possible to update the legend for the dynamic map service layer after the user chooses a symbol and updates the layer symbology? Is there any easy way or would we have to grab the symbol image from the symbol styler and replace the legend picture with the picture from the symbol styler dom element (is that possible)? How does ArcGIS Online update the legend after users change dynamic map service layer symbology, for example a polyline, point, or polygon? Thank you for any help or suggestions you may have.