Filter using a button on vega map

and please tell me if I need to apply within a dashboard also that would be very helpful for me