Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce label jumping during variable label placement #8219

Open
tristen opened this issue May 6, 2019 · 0 comments
Open

Reduce label jumping during variable label placement #8219

tristen opened this issue May 6, 2019 · 0 comments

Comments

@tristen
Copy link
Member

tristen commented May 6, 2019

I've been using the new text-variable-anchor and text-radial-offset properties and I've noticed label re-anchoring has a less desirable visual effect from default label collision.

recalculating

On first render and subsequent zooms, there's a lot of default label placement then a flicker of recalculations as labels detect their proximity against one another and anchor to different positions.

I'd expect detection to happen behind the scenes. Labels would not be rendered until they know the valid anchor point.

Here's a jsFiddle that demonstrates the behaviour: https://jsfiddle.net/9ub4hdry/7/embedded/result/?username=tristen

@tristen tristen added the performance ⚡ Speed, stability, CPU usage, memory usage, or power usage label May 6, 2019
@mourner mourner added feature 🍏 and removed performance ⚡ Speed, stability, CPU usage, memory usage, or power usage labels May 14, 2019
@mourner mourner changed the title Variable label placement performance Reduce label jumping during variable label placement Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants