Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to add hidden layers #2004

Closed
IagoLast opened this issue Jan 10, 2018 · 1 comment
Closed

Add option to add hidden layers #2004

IagoLast opened this issue Jan 10, 2018 · 1 comment

Comments

@IagoLast
Copy link
Contributor

They request an option to add hidden layers.

currently the only way is the following:

const layer = new carto.layer.Layer(source, style);
layer.hide();
client.addLayer(layer);

Maybe we could add an option like this:

const layer = new carto.layer.Layer(source, style, {visible: false});
client.addLayer(layer);

cc @alonsogarciapablo

@rubenmoya
Copy link
Contributor

Added in version 4.0.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants