I'm making a app using mapbox-gl-js in which I have two layers and I wondered if it is possible to subtract one layer from the other.
By "substract" I mean it should only draw parts of the 1st layer and 2nd layer that don’t overlap each other.
Is it possible to do this ?