Can the layer order the text and icon in the same order? #9363
-
When adding a symbol layer to display icons and labels using Deck GL, the labels always appear above the icons. The expected behavior is to have icons and their corresponding labels displayed alternately in this order: Here is the code: Could somebody help me figure out how to achieve the desired behavior where icons and labels appear in this alternating order? note: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
https://codepen.io/Gleb-Shchukin/pen/gOJVorb |
Beta Was this translation helpful? Give feedback.
-
For calc z-coord i use range of values from 0 to 150. At the same time i divide range for different types of points (for highlighted).
In my case it works for more than 15k points. I get dirt only at very small zoom values (at continent level), which is not critical for me. And you can show another (simplified) layer for the small zoom levels to hide the dirt. it's all work around, but we have what we have. |
Beta Was this translation helpful? Give feedback.
-
Hey @mfflik, I have currently the same problem with Text layer from previous element overlapping Icon Layer from next element. Were you able to find a solution that fully fits you? |
Beta Was this translation helpful? Give feedback.
https://codepen.io/Gleb-Shchukin/pen/gOJVorb
It works for me with
depthTest: true
and adding z-coord in getPosition func.But i get muddiness at low zoom values.