Search
CanvasLayer Constructor
See Also
 






Initializes a new instance of the CanvasLayer class.

Namespace: MindFusion.Mapping
File: CanvasLayer.js

 Syntax

JavaScript  Copy Code

function CanvasLayer ([id])

 Parameters

id
Optional.

String. The id of this layer.

 Example

The following code creates a new CanvasLayer with the id "Drawings":

JavaScript  Copy Code

var m = MindFusion.Mapping;

var drawings = new m.CanvasLayer("Drawings");
view.layers.add(drawings);

 See Also