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

Choose the which layers to load when open the html #202

Open
mgzjys opened this issue May 25, 2020 · 1 comment
Open

Choose the which layers to load when open the html #202

mgzjys opened this issue May 25, 2020 · 1 comment

Comments

@mgzjys
Copy link

mgzjys commented May 25, 2020

I am currently using this tool for openlayers. I have four tiled layers from geoserver and was wondering if it is possible to select one of the layers to load when I opened my html.

Currently, when I am open the html file, all the four tiled layers were loaded to the page.

Does anyone happened to know how to do that? Or is it possible to tell the sidebar to unload the rest of the layers.

Thanks a lot.

@nathanvda
Copy link

nathanvda commented Jan 11, 2021

It is not entirely clear to me how you think this this relates to the sidebar functionality? That is configuration of the openlayers map/viewer, no?

In openlayers when creating a layer you either specify the parameter visible to control if the layer is visible.
Or after creation of the layer, one can do layer.setVisible(false).

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

No branches or pull requests

2 participants