Click or drag to resize

Telogis.GeoBase.Canvas.Shapes.PolyLine

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
PolyLine Class

PolyLine inherits from Canvas.Shapes.AbstractShape.

Represents a polyline between a collection of arbitrary points, as displayed in a Canvas renderer. This should not be constructed explicitly, but rather generated as the result of a call to Canvas.polyline.

Constructor
NameDescription
PolyLine(canvas)

Arguments

Properties
NameTypeDescription
closedBoolean

Whether a line segment should be drawn between the last point in the polyline and the first.

pointsArray

The list of either pixel coordinates or LatLons which, when joined in this order, represent the polyline. Pixels are specified relative to the upper-left corner of the canvas area. Due to path simplification, a path defined with LatLons cannot be closed.

StrokeLineCapString

Specifies the shape to be used at the end of open subpaths when they are stroked. Values can be 'miter', 'round' or 'square'.

StrokeLineJoinString

Specifies the shape to be used at the corners of paths or basic shapes when they are stroked. Values can be 'miter', 'round' or 'bevel'.