You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add layers that refer to the vector tile sources, with visibility: "none"
Expected Behavior
No attribution displayed.
Actual Behavior
Attribution for every layer displayed.
In this particular app, the user has the option of choosing between different sets of boundary overlays, which we implement by toggling visibility. We want to (and are obliged to) show the source for the selected overlay. But displaying all the sources is confusing, will soon become extremely messy, and obscures the actual relevant information.
I guess the workaround is use addLayer/removeLayer instead of visibility?
The text was updated successfully, but these errors were encountered:
mapbox-gl-js version: 0.42.2
Steps to Trigger Behavior
visibility: "none"
Expected Behavior
No attribution displayed.
Actual Behavior
Attribution for every layer displayed.
In this particular app, the user has the option of choosing between different sets of boundary overlays, which we implement by toggling
visibility
. We want to (and are obliged to) show the source for the selected overlay. But displaying all the sources is confusing, will soon become extremely messy, and obscures the actual relevant information.I guess the workaround is use
addLayer/removeLayer
instead ofvisibility
?The text was updated successfully, but these errors were encountered: