MapBoxTerritoryEventArgs.Create

Syntax

Create(TerritoryId: String);

Description

The Create constructor creates an argument of the event that occurs when clicking on any map area with the main mouse button.

Example

Executing the example requires a form with the Button1 button, the MapBox1 component named MapBox1 and the UiMap component that is a data source for the MapBox1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

TerrId: IMapBoxTerritoryEventArgs;

Begin

TerrId := New MapBoxTerritoryEventArgs.Create(1100);

MapBox1.OnTerritoryClick(MapBox1, TerrId);

End Sub Button1OnClick;

After executing the example on clicking the button the event of the main mouse button clicking on a region of the map, that has the 1100 identifier, is generated.

See also:

MapBoxTerritoryEventArgs