I thought this might be an easier way to do some filtering
Basically 5 star gradings so 1,2,4,8,16
And 6 property types so 32,64,128,256,512,1024
In the js I add the selections together and check it against the bitmask on the elements.
For the star rating it works fine but selecting a property type does not have the desired effect.
Maybe I'm understanding this wrong but if I select 5 star properties then only 5 stars are shown.
If I then select property type 2 then I have a total of 80 but the remaining elements which have bit of 48 (5 star & property type 1) are still showing.