TTMSFNCCustomMapBox.AddMarker Method
Adds a marker at the specified coordinate.
API unit family: TMSFNCMapBox
Declaring type: TTMSFNCCustomMapBox
Overloads
Overload 1
Adds a marker at the specified coordinate.
function AddMarker(ACoordinate: TTMSFNCMapsCoordinateRec; ATitle: string = ''; AIconURL: string = ''): TTMSFNCMapBoxMarker; reintroduce; overload; virtual;
HIDESBASE virtual TTMSFNCMapBoxMarker* __fastcall AddMarker(const TTMSFNCMapsCoordinateRec &ACoordinate, System::UnicodeString ATitle = System::UnicodeString(), System::UnicodeString AIconURL = System::UnicodeString())/* overload */;
Parameters
| Name | Description |
|---|---|
ACoordinate |
Coordinate where the marker is placed. |
ATitle |
Optional marker title. |
AIconURL |
Optional URL for the marker icon image. |
Returns
The created Mapbox marker item.
Overload 2
Adds a marker at the specified latitude and longitude.
function AddMarker(ALatitude: Double; ALongitude: Double; ATitle: string = ''; AIconURL: string = ''): TTMSFNCMapBoxMarker; reintroduce; overload; virtual;
HIDESBASE virtual TTMSFNCMapBoxMarker* __fastcall AddMarker(double ALatitude, double ALongitude, System::UnicodeString ATitle = System::UnicodeString(), System::UnicodeString AIconURL = System::UnicodeString())/* overload */;
Parameters
| Name | Description |
|---|---|
ALatitude |
Latitude of the marker position. |
ALongitude |
Longitude of the marker position. |
ATitle |
Optional marker title. |
AIconURL |
Optional URL for the marker icon image. |
Returns
The created Mapbox marker item.