-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
React.js Choropleth Hover Speed #2303
Comments
I regret that I am unable to help you with this question on our GitHub issue tracker because this is neither a feature request nor a bug report. I am unable to reproduce the hover effect slowdown using your provided example. You have linked to a similar, more minimal example that does work as expected, leading me to believe this is a problem with your implementation. I encourage you to post this question on StackOverflow if you need more help. Your issues may be resolved by #2224. |
@danielberkompas try the master version. If it doesn't fix the issue, try |
@lucaswoj Have you tried it in Chrome? It's very slow for me. |
@lucaswoj Fair enough. Any ETA on those initiatives? |
mapbox-gl-js version: 0.15.0
Steps to Trigger Behavior
Expected Behavior
When I wrap a MapboxGL map in a React component, I expect that the hover effect will occur quickly when I hover over a country or province. I also expect that the hover effect performance will remain constant.
Actual Behavior
When I wrap a MapboxGL map in a React component as shown in this JSFiddle, the hover effect starts off snappy, but degrades in performance over time.
This is particularly odd because very similar code works as expected:
https://jsfiddle.net/0Lk8awwp/1/ (Broken, shows code)
https://jsfiddle.net/Mourner/0Lk8awwp/3/ (Fixed by a Mapbox employee)
See also #2174, #2082 for earlier reports and fixes for this problem.
The text was updated successfully, but these errors were encountered: