mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

How to show / hide a layer related to Mapbox street v8 ?

Open joffreyBerrier opened this issue 2 years ago • 1 comments

mapbox-gl-js version: 2.9.1

Question

I want to show/hide a layer related to the data source route of Mapbox streets v8 but when I set the layout property visible to 'none', the LayoutProperty is ignored because this data is related to the zoom of the map, is it possible to avoid this?

Thx

Links to related documentation

joffreyBerrier avatar Jul 06 '22 15:07 joffreyBerrier

Hi, @joffreyBerrier

Thank you for using mapbox-gl-js. This issue tracker is for reporting bugs and feature requests. Please provide a minimal, complete, verifiable demonstration of the issue to help the maintainers and community understand and address the problem accurately.

You might also consider posting your question to https://stackoverflow.com/questions/tagged/mapbox-gl-js to ask the community for help.

stepankuzmin avatar Aug 02 '22 13:08 stepankuzmin