Initializes a new instance of the Circle class.
Namespace: MindFusion.Mapping
File: Circle.js
JavaScript Copy Code |
---|
function Circle ([center, [radius]]) |
LatLong. The center of this drawing in geographical coordinates.
Number. The radius of this drawing.
The following code creates a new CanvasLayer with an id "Drawings" and adds to its decorations Circle instances, whose coordinates are taken from an array:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var drawings = new m.CanvasLayer("Drawings"); // create markers and circles at the specified points |