IEaxMapBoxTerritoryEventArgs.Territory

Syntax

Territory: String;

Description

The Territory property returns string identifier of the region which is clicked with the mouse.

Comments

The property returns value of the region ISO attribute, if it is present in the map structure or region numeric identifier with the added "o" letter at the beginning.

Fore Example

Executing the example requires a form with the EaxMapBox component named EaxMapBox1 in it and a data source for EaxMapBox1. The specified procedure is a handler of the OnTerritoryClick event of the EaxMapBox1 component.

Sub EaxMapBox1OnTerritoryClick(Sender: Object; Args: IEaxMapBoxTerritoryEventArgs);
Begin
    Debug.WriteLine(Args.Territory);
End Sub EaxMapBox1OnTerritoryClick;

On executing the example if the map region is clicked, the region identifier is displayed in the development environment console.

See also:

IEaxMapBoxTerritoryEventArgs