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

Circles don't respond to events on the stroke area #5426

Closed
stevage opened this issue Oct 9, 2017 · 2 comments
Closed

Circles don't respond to events on the stroke area #5426

stevage opened this issue Oct 9, 2017 · 2 comments
Labels
Milestone

Comments

@stevage
Copy link
Contributor

stevage commented Oct 9, 2017

mapbox-gl-js version: 0.40.1

Steps to Trigger Behavior

  1. https://codepen.io/stevebennett/pen/NaYaLv
  2. Notice how hovering over the green border doesn't change the interior color.

Expected Behavior

Hovering over the stroke part of the circle would trigger events.

I'm working on a map with very thick borders like that.

@anandthakker
Copy link
Contributor

👍 thanks for the report & example @stevage

@stevage
Copy link
Contributor Author

stevage commented Oct 9, 2017

For comprehensiveness I'll point out that a workaround is to use two circle layers of different radius rather than a stroke outline, but there may be cases where that's inconvenient or worse for performance or whatever.

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

No branches or pull requests

3 participants