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
Hi everyone,
I'm trying to find a way to toggle different layers on and off from my Style.
For example if I don't want to show the layer ztl-bergamo
I've found out that I can use mapController?.removeLayer("ztl-bergamo");
which removes completely the layer from the app view but now the problem is that I don't know how to put it back.
So my question is: how can I show again a layer that I removed with mapController?.removeLayer("nameOfLayer").