Create(TerritoryId: Integer);
The Create constructor creates argument of the event that occurs on clicking on any region of the map.
Executing the example requires a form with the Button1 button on it, the EaxMapBox component named EaxMapBox1, and the UiEaxMap component, that is a data source for EaxMapBox1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
TerrId: IEaxMapBoxTerritoryEventArgs;
Begin
TerrId := New EaxMapBoxTerritoryEventArgs.Create(1100);
EaxMapBox1.OnTerritoryClick(EaxMapBox1, TerrId);
End Sub Button1OnClick;
After executing the example, on clicking the button the event of mouse click on the region with the 1100 identifier is generated.
See also: