Table of Contents

TTMSFNCMaps.ShowPopup Method

Displays a popup at the specified coordinate.

API unit family: TMSFNCMaps Declaring type: TTMSFNCMaps Inherited from: TTMSFNCCustomMaps

Overloads

Overload 1

Displays a popup at the specified coordinate.

function ShowPopup(ACoordinate: TTMSFNCMapsCoordinateRec; AText: string; AOffsetX: Double = 0; AOffsetY: Double = 0; APanMap: Boolean = True): string; overload; virtual;

Parameters

Name Description
ACoordinate Coordinate value used by the operation.
AText Text content used by the operation.
AOffsetX Horizontal popup offset in pixels.
AOffsetY Vertical popup offset in pixels.
APanMap Set to True to pan the map when the popup opens.

Returns

True when the operation succeeds or the condition is met; otherwise False.

Overload 2

Displays a popup at the specified coordinate.

function ShowPopup(ALatitude: Double; ALongitude: Double; AText: string; AOffsetX: Double = 0; AOffsetY: Double = 0; APanMap: Boolean = True): string; overload; virtual;

Parameters

Name Description
ALatitude Latitude value in decimal degrees.
ALongitude Longitude value in decimal degrees.
AText Text content used by the operation.
AOffsetX Horizontal popup offset in pixels.
AOffsetY Vertical popup offset in pixels.
APanMap Set to True to pan the map when the popup opens.

Returns

True when the operation succeeds or the condition is met; otherwise False.