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

Correctly update layer control when moving <map-extent> up/down by re-ordering it among sibling <map-extent>s #956

Open
prushforth opened this issue Apr 5, 2024 · 0 comments
Labels

Comments

@prushforth
Copy link
Member

Steps to reproduce

Load this experiment
Open devtools Elements panel
Select / highlight the third <map-extent> in the "National Geographic" layer (label="Imagery")
In the console drawer, execute this:
let imagery = $0
Select / highlight the first <map-extent> in the "National Geographic" layer (label="National Geographic")
In the console drawer, execute this:
$0.insertAdjacentElement('afterend',imagery)

What happens:

The <map-extent label="Imagery"> is moved to the second DOM position, but it disappears from the layer control altogether.

What should happen:

The <map-extent label="Imager"> is moved to the second DOM position, and it should be the second sub-layer in the "National Geographic" layer in the layer control.

@prushforth prushforth added the bug label Apr 5, 2024
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

1 participant