For the Group Filter widget, how do i remove the html interface and have it behave like a toggle button? So one click it applies the filter and the second click resets the filter?
Solved! Go to Solution.
Here is what I was able to come up with. In the widget.js have these changes (lines 2 and 7):
onOpen: function(){
domStyle.set(this.domNode.parentNode.parentNode.parentNode, {display: "none"});
if(!this.firstOpen) {
this.bypassActive = true;
this.onLayerUpdate();
}
this.setFilterLayerDef();
},
Chad,
Do you still want to display the widgets panel?
Here is what I was able to come up with. In the widget.js have these changes (lines 2 and 7):
onOpen: function(){
domStyle.set(this.domNode.parentNode.parentNode.parentNode, {display: "none"});
if(!this.firstOpen) {
this.bypassActive = true;
this.onLayerUpdate();
}
this.setFilterLayerDef();
},