The UiMap component is not visual and used to access the repository maps.
After the component is placed on the form, do the following to use it:
Set the component as a data source for any MapBox component.
In the Fore code, using the Map property get parameters of the map, described by the interface IMap. For obtained map in the IMap.Topobase property the topobase needs to be specified. To do this the following Fore code is used:
Var
MB: IMetabase;
WorldMap: IMap;
Begin
MB := MetabaseClass.Active;
WorldMap := UiMap1.Map;
WorldMap.Topobase := MB.ItemById("World_TBS").Bind As IMapTopobase;
On the form launch the map is displayed in the MapBox component.
All following work consists in the data sources for the map layers connection and visual design setting up. These operations are performed in the code using Fore. See a more detailed description of the IMap interface and interfaces connected to it.
| 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 the 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 required. |
See also: