Table of Contents

TTMSFNCMapBox.AddMarker Method

Adds a marker at the specified coordinate.

API unit family: TMSFNCMapBox Declaring type: TTMSFNCMapBox Inherited from: TTMSFNCCustomMapBox

Overloads

Overload 1

Adds a marker at the specified coordinate.

function AddMarker(ACoordinate: TTMSFNCMapsCoordinateRec; ATitle: string = ''; AIconURL: string = ''): TTMSFNCMapBoxMarker; reintroduce; overload; virtual;

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;

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.