Reputation: 927
Is there any way to put(a higher z-index) the below line (Mapbox layer) above This HTML marker(In my case chart)? If not, what is the alternative?
Upvotes: 1
Views: 898
Reputation: 126527
No, HTML elements exist in the layer above the Mapbox GL JS canvas.
You could create two Mapbox GL JS elements, keep them in sync (movement-wise), with the top one containing just the line layer, with no background.
Upvotes: 2