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

zoomToLayer on TemplatedFeatureLayer causes feature duplication #634

Closed
ahmadayubi opened this issue Dec 14, 2021 · 0 comments · Fixed by #635
Closed

zoomToLayer on TemplatedFeatureLayer causes feature duplication #634

ahmadayubi opened this issue Dec 14, 2021 · 0 comments · Fixed by #635
Labels

Comments

@ahmadayubi
Copy link
Member

ahmadayubi commented Dec 14, 2021

2021-12-14.10-25-31.mp4

It also seems to only happen when the current zoom level is greater than the layers zoom level.

@prushforth Turns out the reason it needed multiple tab presses is because the features are duplicated in the DOM. The bug is related to zoomToLayer in combination with TemplatedFeaturesLayer, where the _pullFeatureFeed is called twice (through the moveend handler) instead of once, not sure why yet.

Originally posted by @ahmadayubi in #596 (comment)

@ahmadayubi ahmadayubi added the bug label Dec 14, 2021
@ahmadayubi ahmadayubi changed the title zoomToLayer on TemplatedFeatureLayer causes layer duplication zoomToLayer on TemplatedFeatureLayer causes feature duplication Dec 14, 2021
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