reyemtm / mapbox-layer-control

A layer control for Mapbox GL JS with groups and a filter function.

Home Page:https://reyemtm.github.io/mapbox-layer-control/example/grouped.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Difficulties integrating the module into a sidebar

sylvain258 opened this issue · comments

Hello,

I tried this module today and encountered a few difficulties. I had no trouble adapting the module for MapLibre. It works in the same way.

I'm having trouble inserting this module into a javascript-generated div.

My mapping application is developed with Maplibre, in which I have a Leaflet sidebar.

The latter is written entirely in JS, and I'd like to be able to write the module in the sidebar.

The "config" part of the code systematically gives me an error saying that it can't find the selector.

Do you have a solution to this problem?

Thanks

Sylvain BECQUAERT