Skip to main content
Table of Contents

TTMSFNCLeaflet.AddMarker Method

Adds a marker to the map.

API unit family: TMSFNCLeaflet Declaring type: TTMSFNCLeaflet Inherited from: TTMSFNCCustomLeaflet

Overloads

Overload 1

Adds a marker to the map.

FMX.TMSFNCLeaflet.hppPascalC++
function AddMarker(ACoordinate: TTMSFNCMapsCoordinateRec; ATitle: string = ''; AIconURL: string = ''): TTMSFNCLeafletMarker; reintroduce; overload; virtual;
HIDESBASE virtual TTMSFNCLeafletMarker* __fastcall AddMarker(const TTMSFNCMapsCoordinateRec &ACoordinate, System::UnicodeString ATitle = System::UnicodeString(), System::UnicodeString AIconURL = System::UnicodeString())/* overload */;

Parameters

Name Description
ACoordinate Coordinate or coordinate array used by the operation.
ATitle Marker title text.
AIconURL URL used by the operation.

Returns

The newly created item.

Overload 2

Adds a marker to the map.

FMX.TMSFNCLeaflet.hppPascalC++
function AddMarker(ALatitude: Double; ALongitude: Double; ATitle: string = ''; AIconURL: string = ''): TTMSFNCLeafletMarker; reintroduce; overload; virtual;
HIDESBASE virtual TTMSFNCLeafletMarker* __fastcall AddMarker(double ALatitude, double ALongitude, System::UnicodeString ATitle = System::UnicodeString(), System::UnicodeString AIconURL = System::UnicodeString())/* overload */;

Parameters

Name Description
ALatitude Latitude value for the coordinate.
ALongitude Longitude value for the coordinate.
ATitle Marker title text.
AIconURL URL used by the operation.

Returns

The newly created item.