Search
Circle Class
See Also
 






Represents a circle drawing.

Namespace: MindFusion.Mapping
File: Circle.js

 Syntax

JavaScript  Copy Code

// class
Circle.prototype = {}

 Example

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");
view.layers.add(drawings);

// create markers and circles at the specified points
points.forEach(
    function (point)
    {
        markers.decorations.add(new m.Marker(point));
        var circle = new m.Circle(point, 1000);
        circle.fill = "red";
        drawings.decorations.add(circle);
    });

 Inheritance Hierarchy

MindFusion.Mapping.Circle

 See Also