Gets or sets the string identifier of this drawing.
Namespace: MindFusion.Mapping
File: Drawing.js
SyntaxJavaScript
Copy Code
|
|---|
get id() {} |
String. The string identificator.
ExampleThe following code creates a new CanvasLayer with an id "Drawings" and adds Circle instances. The circles identifiers are taken from an array. The Circle class extends Drawing:
JavaScript
Copy Code
|
|---|
var m = MindFusion.Mapping; var points = [ var drawings = new m.CanvasLayer("Drawings"); var ids = ["Memorial", "Cathedral", "Museum", "Palace", "Cafe"]; // create markers and circles at the specified points |
See Also