TTMSFNCOpenLayers.AddMarker Method
Adds a marker to the map.
API unit family: TMSFNCOpenLayers
Declaring type: TTMSFNCOpenLayers
Inherited from: TTMSFNCCustomOpenLayers
Overloads
Overload 1
Adds a marker to the map.
function AddMarker(ACoordinate: TTMSFNCMapsCoordinateRec; ATitle: string = ''; AIconURL: string = ''): TTMSFNCOpenLayersMarker; 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 = ''): TTMSFNCOpenLayersMarker; 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.