Skip to content

Adding SymbolLayer text to MarkerLayer #134

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

You must be logged in to vote

a) I don't think so, but I'm not 100% sure. It's worth checking the Maplibre Layers Spec to see if there's a way to accomplish this, but I expect not.

b) Unfortunately not for this case. The problem there is that the SymbolLayer is being rendered as part of the WebGL canvas, but the MarkerLayer with its SVGs are rendered on top of it in the DOM.

When everything is in WebGL you can use thebeforeId prop to control which layers render below others, and when everything is in DOM you can just use normal CSS z-order, but you can't place DOM elements in between layers of the WebGL canvas.

My suggestion here would be to put the cluster counts into the marker's HTML as well so you have full contro…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Niamh1
Comment options

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