GraffitiMap.Shapes.Polygon

View Categories

Enumerations #

Name Values

This class exposes no enumerations.

Constants #

Name Type Value

This class exposes no constants.

Events #

Definition Parameters Return Type Description

This class exposes no events.

Methods #

Definition Parameters Return Type Description
Constructor path() as GraffitiMap.Point None Creates a new instance.

Properties #

Name Type Default Value Description
FillColor Color &c000000 Color to fill the polygon.
path() GraffitiMap.Point Array of points for the polygon’s bounds. Do not connect the final point back to the start, as this is done automatically.
StrokePosition GraffitiMap.Shapes.StrokePositions Position of the shape’s stroke on its outer edge.

Examples #

Sample Polygon #

var polygonPath() as GraffitiMap.Point
polygonPath.Add( new GraffitiMap.Point( 25.774, -80.19 ) )
polygonPath.Add( new GraffitiMap.Point( 18.466, -66.118 ) )
polygonPath.Add( new GraffitiMap.Point( 32.321, -64.757 ) )
var bermudaTriangle as new GraffitiMap.Shapes.Polygon( polygonPath )
bermudaTriangle.Tooltip = "<strong>Strange</strong> stuff happens here?<br />I guess?<br />I mean like...aliens and junk?<br />IDK!"
bermudaTriangle.FillColor = color.RGB( 255, 0, 0, 100 )
bermudaTriangle.StrokeColor = color.RGB( 255, 0, 0, 200 )
bermudaTriangle.StrokeWeight = 2
bermudaTriangle.StrokePosition = GraffitiMap.Shapes.StrokePositions.Outside
bermudaTriangle.Draggable = True
bermudaTriangle.Editable = True
me.AddShape( bermudaTriangle )

Notes #

This class currently has no notes.