Initializes a new instance of the Drawing class.
Namespace: MindFusion.Mapping
File: Drawing.js
JavaScript Copy Code |
---|
function 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 |
---|
new m.LatLong(3.5308084104036523, -75.68240577939847), var drawings = new m.CanvasLayer("Drawings"); // create markers and circles at the specified points |