Table of Contents

TTMSFNCMapKit.AddPolygon Method

Adds a polygon from an array of coordinates.

API unit family: TMSFNCMapKit Declaring type: TTMSFNCMapKit Inherited from: TTMSFNCCustomMapKit

Syntax

function AddPolygon(ACoordinates: TTMSFNCMapsCoordinateRecArray; AClose: Boolean = False): TTMSFNCMapKitPolygon; reintroduce; virtual;

Parameters

Name Description
ACoordinates Coordinates that define the polygon outline.
AClose When True, closes the polygon path by connecting the final coordinate to the first coordinate.

Returns

The created polygon item.