Gets or sets the visibility of this CanvasLayer.
Namespace: MindFusion.Mapping
File: CanvasLayer.js
JavaScript Copy Code |
---|
get visible() {} |
Boolean. True if the layer is visible, otherwise false.
The 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); |