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

Cannot click on mapbox control #13

Open
panuairspace opened this issue Sep 8, 2019 · 1 comment
Open

Cannot click on mapbox control #13

panuairspace opened this issue Sep 8, 2019 · 1 comment

Comments

@panuairspace
Copy link

I added a search control from mapbox, but couldn't click on it.

It's like mapbox layer is simply merged to canvas. But if you use tab to get to the search box, it still intractable.

Do you have any suggestion?
image

@fuzhenn
Copy link
Member

fuzhenn commented Sep 17, 2019

That is because mapbox map is loaded in maptalks's container behind canvas, and events are all intercepted.

You can have a try to set container option of MapboxGLLayer to front (default is back),which will load mapbox map in a container on top of main canvas.

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

No branches or pull requests

2 participants