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.

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

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.

function AddMarker(ALatitude: Double; ALongitude: Double; ATitle: string = ''; AIconURL: string = ''): TTMSFNCLeafletMarker; reintroduce; overload; virtual;

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.