Replies: 3 comments
-
There is probably different logic for different placement, and there might be bugs in each implementation. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the info! Feel free to open an issue, even better if you can open a PR to fix this. 🙏🏻 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋,
I'm trying to place labels on a line with overlap, but I can't manage to find the right configuration.
I want the label to follow the line. If there is a collision, I want to force the label to still appear on the map.
I've tried several combinations to illustrate my questions 👇
🔗 Link to reproduction : https://jsbin.com/zojepikite/edit?html,js,output
Case 1
We see some collision boxes in red, and only the labels that don't collide are shown → ✅ OK.
Case 2
we see collision boxes in blue, and all the labels are shown → ✅ OK.
Case 3 / 4
At a low zoom level, nothing appears. What is causing not even a single label to appear?
Can we adjust the zoom threshold when the change happens?
At a medium zoom level, some labels appear. We always see collision boxes in blue, and I wonder why all labels don't appear?
Main Questions ❓
symbol-placement: point
not affected?text-padding
.Additional Experiments 🧪
At a low zoom level, nothing appears (same as above).
At a medium zoom level, everything works as expected ✅.
At a high zoom level, it seems the tile boundaries prevent the option from working correctly, as if they acted like the end of the line.
✨ Conclusion
I'm scratching my head a bit 🤯. It feels like labels overlap behave differently if placement is point or line. Any hint, trick would be greatly appreciated. Thank you 🙏
Beta Was this translation helpful? Give feedback.
All reactions