The UiMap component is non-visual and used to access repository maps.
After the component is placed on the form, execute the following operations to use it:
Set the component as a data source for any MapBox component.
In the Fore code, the Map property can be used to get parameters of the map described by the IMap interface. For the obtained map in the IMap.Topobase property specify the topobase. To do this, use the following Fore code (example):
Var
MB: IMetabase;
WorldMap: IMap;
Begin
MB := MetabaseClass.Active;
WorldMap := UiMap1.Map;
WorldMap.Topobase := MB.ItemById("World_TBS").Bind As IMapTopobase;
After the form is started the map is displayed in the MapBox component.
All the further work consists in connecting data sources for map layers and setting up visual formatting. These operations are executed in the Fore code. For details see description of the IMap interface and linked interfaces.
| Property name | Brief description | |
![]() |
ComponentCount | The ComponentCount property returns the number of child components. |
![]() |
Components | The Components property returns the child component. |
![]() |
Data | The Data property is used to store any custom data. |
![]() |
Map | The Map property returns a link to the object, containing the parameters of map display. |
![]() |
Name | The Name property determines a component name. |
![]() |
Tag | The Tag property is not used by the compiler. The user can change the value of the Tag property and use it as he wishes. |
See also: