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

make it easier to hit labels on mobile - e.g., transparent background for labels #185

Open
black-snow opened this issue Nov 19, 2023 · 1 comment

Comments

@black-snow
Copy link

black-snow commented Nov 19, 2023

Is your feature request related to a problem? Please describe.
On mobile devices, I find it very hard to touch a label. You have to hit the letters exactly, which, suprisingly, ain't an easy feat to achieve. The spacing between the labels does not seem to be associated with the label.
Actually, this is rather annoying on desktop systems as well - it's just way easier to hit the letters (or the dot) with a pointing device.

Describe the solution you'd like
I think it'd help a lot if there was a transparent layer behind the label's letters, that'd count as "hitting the label", too. Ideally with some padding around the text as well.

Describe alternatives you've considered
Hacking together an onclick on the globe itself, calculating the nearest data point and triggering its onclick event in case it's "close enough" to the data point.

Additional context

P.S.: At altitude above ~2.5 the points and labels flicker, both in my latest desktop FF and Chrome on mobile. Is there anything to do about this?
/edit: Setting a very low altitude seems to fix the flickering issue.

@carmoreira
Copy link

This would be an interesting feature to have, when using the labels with click events, it would help to have the hover/click event trigger also when the mouse/tap is between the letters of the label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants