maptalks / maptalks.mapboxgl

MapboxglLayer for maptalks.js
MIT License
56 stars 23 forks source link

Cannot click on mapbox control #13

Open panuairspace opened 5 years ago

panuairspace commented 5 years ago

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 commented 5 years ago

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.