Follow

Hide a layer in your App

Sometimes, it can be useful to hide a layer in your app.  Here's a way to do it by adding this Javascript snippet to your app configuration:

 

$( document ).ready(function() {
     $('.layer-tree-item')[2].remove()
});

NOTE: Layer index starts from the top of layer tree at position 0.

 

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk