Gets or sets an object, holding custom user data.
Namespace: MindFusion.Mapping
File: Drawing.js
SyntaxJavaScript
Copy Code
|
|---|
get data() {} |
Object. The custom user data.
ExampleThe following code creates a new CanvasLayer with an id "Drawings" and adds Circle instances, whose coordinates are taken from an array. It uses the data property to assign to the new Circle an instance of a custom sightseeing class, whose instances are kept in an array called "places". The Circle class extends Drawing:
JavaScript
Copy Code
|
|---|
var m = MindFusion.Mapping; var points = [ var drawings = new m.CanvasLayer("Drawings");
|
See Also