Table of Contents

TTMSFNCCustomMaps.AddLabel Method

Creates and returns label.

API unit family: TMSFNCMaps Declaring type: TTMSFNCCustomMaps

Overloads

Overload 1

Creates and returns label.

function AddLabel(ACoordinate: TTMSFNCMapsCoordinateRec; AText: string; AFontColor: TTMSFNCGraphicsColor = gcNull; ABackgroundColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCMapsLabel; overload; virtual;

Parameters

Name Description
ACoordinate Coordinate value used by the operation.
AText Text content used by the operation.
AFontColor Text color applied to the label.
ABackgroundColor Background color applied to the label.

Returns

String value returned by the operation.

Overload 2

Creates and returns label.

function AddLabel(ABounds: TTMSFNCMapsBoundsRec; AText: string; AFontColor: TTMSFNCGraphicsColor = gcNull; ABackgroundColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCMapsLabel; overload; virtual;

Parameters

Name Description
ABounds Bounds used by the operation.
AText Text content used by the operation.
AFontColor Text color applied to the label.
ABackgroundColor Background color applied to the label.

Returns

String value returned by the operation.

Overload 3

Creates and returns label.

function AddLabel(ANorthEastLatitude: Double; ANorthEastLongitude: Double; ASouthWestLatitude: Double; ASouthWestLongitude: Double; AText: string; AFontColor: TTMSFNCGraphicsColor = gcNull; ABackgroundColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCMapsLabel; overload; virtual;

Parameters

Name Description
ANorthEastLatitude Latitude value in decimal degrees.
ANorthEastLongitude Longitude value in decimal degrees.
ASouthWestLatitude Latitude value in decimal degrees.
ASouthWestLongitude Longitude value in decimal degrees.
AText Text content used by the operation.
AFontColor Text color applied to the label.
ABackgroundColor Background color applied to the label.

Returns

String value returned by the operation.

Overload 4

Creates and returns label.

function AddLabel(ALatitude: Double; ALongitude: Double; AText: string; AFontColor: TTMSFNCGraphicsColor = gcNull; ABackgroundColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCMapsLabel; overload; virtual;

Parameters

Name Description
ALatitude Latitude value in decimal degrees.
ALongitude Longitude value in decimal degrees.
AText Text content used by the operation.
AFontColor Text color applied to the label.
ABackgroundColor Background color applied to the label.

Returns

String value returned by the operation.