Gets the collection of Decorations, displayed by this layer.
Namespace: MindFusion.Mapping
File: CanvasLayer.js
SyntaxJavaScript
Copy Code
|
|---|
get decorations() {} |
ObservableCollection. A collection of Decoration instances.
ExampleThe following code creates a new CanvasLayer with an id "Drawings" and adds a Polyline that connects an array with dots to the decorations of the layer:
JavaScript
Copy Code
|
|---|
var m = MindFusion.Mapping; var drawings = new m.CanvasLayer("Drawings"); // create a smooth polyline connecting the points drawings.decorations.add(poly); |
See Also