Skip to main content
Table of Contents

TTMSFNCGoogleMaps.AddMarker Method

Adds a marker at the specified coordinate.

API unit family: TMSFNCGoogleMaps Declaring type: TTMSFNCGoogleMaps Inherited from: TTMSFNCCustomGoogleMaps

Overloads

Overload 1

Adds a marker at the specified coordinate.

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

Parameters

Name Description
ACoordinate Coordinate used by the operation.
ATitle The title value.
AIconURL Marker icon URL.

Returns

The resulting google maps marker instance.

Overload 2

Adds a marker at the specified latitude and longitude.

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

Parameters

Name Description
ALatitude Latitude in decimal degrees.
ALongitude Longitude in decimal degrees.
ATitle The title value.
AIconURL Marker icon URL.

Returns

The resulting google maps marker instance.