-
Notifications
You must be signed in to change notification settings - Fork 466
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
Layer Re-ordering is not working within Web component. #1048
Comments
Do you have an example online to test. |
I am using 'lit' for creating web component. Please check this link: https://codesandbox.io/p/sandbox/pedantic-leaf-hf2z7d?file=%2Fsrc%2Findex.js While debugging, I figured out that in move(e) function, e.target and document.elementFromPoint is actually returning the web component instead of the actual node which is preventing it from dropping. I fixed it by updating the below code for now in my local:
This code can be found in file: LayerSwitcher.js:594 |
I hope this might help. |
I'll try to fix it asap |
#1048: Layerswitcher re-ordering issue in web component
When will these changes published on npm? |
Just published ol-ext@4.0.18 |
I have a web component 'my-map' that is rendering openlayer map. I am using LayerShop Class for layer switcher.
Problem:
When I am trying to re-order the layers, I am not able to drop the layer on top or bottom.
It's working fine outside web component. But not inside web component.
The text was updated successfully, but these errors were encountered: