I would put that logic into gaCustomOverlay (maybe additional optional parameter to the function like 'ignoreRectangle'). We have similar test in this component already.