Initializes a new instance of the Poly class.
Namespace: MindFusion.Mapping
File: Poly.js
JavaScript Copy Code |
---|
function Poly ([points, [closed]]) |
Array <LatLong>. The array of points in geographical coordinates.
Boolean. True if the drawing should be closed, otherwise false.
The following code creates a new Polyline from an array with points and adds it to the decorations of a CanvasLayer:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var points = [ var drawings = new m.CanvasLayer("Drawings");
|