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

removeFeatureState does not remove state from the original zoom level #8026

Closed
asheemmamoowala opened this issue Mar 12, 2019 · 0 comments · Fixed by #8087
Closed

removeFeatureState does not remove state from the original zoom level #8026

asheemmamoowala opened this issue Mar 12, 2019 · 0 comments · Fixed by #8087
Assignees
Labels

Comments

@asheemmamoowala
Copy link
Contributor

asheemmamoowala commented Mar 12, 2019

Steps to reproduce

https://jsfiddle.net/u3cvf8sx/

  1. Click on Africa to highlight (notice we are default to zoom level 1).
  2. Now zoom in via mouse scroll wheel until zoom level changes to 2 or higher.
  3. Now click anywhere in ocean area, and the highlight on Africa will disappear as expected. This is achieved by calling removeFeatureState on the layer.
  4. Now without clicking anything but use mouse scroll wheel to zoom out again back to zoom level 1.

Expected behavior

highlight is removed for all zoom levels

Actual behavior

The highlight is back again for zoom level 1 only. As if the feature's state at zoom level 1 hasn't been removed.

Configuration

Browser: Chrome
Operating systems + versions:

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

Successfully merging a pull request may close this issue.

1 participant