Skip to content

Mask layer using CustomLayerInterface causes rendering issues on layers above - help needed to understand stencil buffer #5353

Closed Answered by bameyrick
bameyrick asked this question in Q&A
Discussion options

You must be logged in to vote

I think I might have solved this (by sheer luck) 🥳! I added this line to the end of my render function and that seems to have solved my rendering issues on the line layer above:

this.map?.painter.clearStencil();

I don't know if my MaskLayer implementation would be any help, but wondering if it could be a basis for a native MapLibre mask layer as suggested in #3237

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bameyrick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant