GraffitiSuite Docs
Docs
Polyline
Loading document parsing libraries...
# Polyline Class Inherits Shape ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | True | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | Constructor | path() as GraffitiMap.Point | (None) | Creates a new instance of the class. | | Constructor | path() as GraffitiMap.Point <br> icons() as GraffitiMap.IconSequence | (None) | Creates a new instance of the class. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | icons() | GraffitiMap.IconSequence | (None) | Icons to be displayed along the path. | | path() | GraffitiMap.Point | (None) | Path global coordinates. | ## Examples ### Sample Polyline ``` var linePath() as GraffitiMap.Point linePath.Add( new GraffitiMap.Point( 37.772, -122.214 ) ) linePath.Add( new GraffitiMap.Point( 21.291, -157.821 ) ) linePath.Add( new GraffitiMap.Point( -18.142, 178.431 ) ) linePath.Add( new GraffitiMap.Point( -27.467, 153.027 ) ) var line as new GraffitiMap.Shapes.Polyline( linePath ) line.Tooltip = "<h3>First trans-Pacific flight</h3><br />" + _ "<strong>Start</strong>: Oakland, CA<br />" + _ "<strong>End</strong>: Brisbane, Australia<br />" + _ "<strong>Pilot</strong>: Charles Kingsford Smith<br />" + _ "<strong>Year</strong>: 1928" line.StrokeColor = color.RGB( 255, 0, 0, 150 ) line.StrokeWeight = 2 line.Geodesic = True line.Draggable = True line.Editable = True me.AddShape( line ) ```