calculate the union out of the clipping areas for each layer