fix map legend pointer events