Gets or sets the visibility of this CanvasLayer.
Namespace: MindFusion.Mapping
File: CanvasLayer.js
SyntaxJavaScript
Copy Code
|
|---|
get visible() {} |
Boolean. True if the layer is visible, otherwise false.
ExampleThe following code creates a new CanvasLayer and sets its visible property to false:
JavaScript
Copy Code
|
|---|
| var drawings = new m.CanvasLayer("Drawings"); drawings.visible = false; view.layers.add(drawings); |
See Also