Skip to content

Removing map-feature to leave an empty layer- throws an error #838

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

Closed
Tracked by #841
AliyanH opened this issue Apr 28, 2023 · 0 comments · Fixed by #841
Closed
Tracked by #841

Removing map-feature to leave an empty layer- throws an error #838

AliyanH opened this issue Apr 28, 2023 · 0 comments · Fixed by #841
Labels

Comments

@AliyanH
Copy link
Member

AliyanH commented Apr 28, 2023

When removing the only map-feature from a layer-, map-feature disconnectedCallback throws an error.

Steps to reproduce:

  • Go to this experiment
  • Click "Add feature"
  • Click "Remove feature"
  • Console throws an error, and the feature is not completely removed, checking unchecking the layer still renders the feature.
@AliyanH AliyanH added the bug label Apr 28, 2023
@AliyanH AliyanH mentioned this issue May 1, 2023
5 tasks
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