Represents a decoration drawing.
Namespace: MindFusion.Mapping
File: Drawing.js
JavaScript Copy Code |
---|
// class |
This is the base class for Circle and Poly classes. You can create your own drawing classes by extending Drawing.
The following code creates a new CanvasLayer with an id "Drawings" and adds Circle instances, whose coordinates 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"); // create markers and circles at the specified points |
MindFusion.Mapping.Drawing