Skip to main content
Table of Contents

TTMSFNCCustomMapKit.AddPolygon Method

Adds a polygon from an array of coordinates.

API unit family: TMSFNCMapKit Declaring type: TTMSFNCCustomMapKit

Syntax

FMX.TMSFNCMapKit.hppPascalC++
function AddPolygon(ACoordinates: TTMSFNCMapsCoordinateRecArray; AClose: Boolean = False): TTMSFNCMapKitPolygon; reintroduce; virtual;
HIDESBASE virtual TTMSFNCMapKitPolygon* __fastcall AddPolygon(TTMSFNCMapsCoordinateRecArray ACoordinates, bool AClose = false);

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.