I was wondering if it is possible to programmatically change the config search layer based on a condition being met. I know you can access a search layer by its name using:
this.config.layers.name === "Name of the Search Layer";
What I'm trying to do is set it to a particular search layer in my config. Any help programmatically changing this would be great.