I can't figure out why the legend will not refresh until I change the view or navigate.
startup: function() {
this.own(on(this.selectField, "change", lang.hitch(this, this.onFieldChange, this.legendRefresh)));
.......
legendRefresh: function(evt){
this.legend.refresh();
},
I tried to add this.legend.refresh(); to the end of onFieldChange, but it doesn't make sense having to call legend.refresh() right after legend.startup() runs within the createLegend function.