TopoBase: IMapTopobase;
The TopoBase property determines a map topobase.
Executing the example requires a form with a button named Button1, the UiMap component named UiMap1 and the MapBox component. UiMap is a data source for MapBox. The repository should also contain a map with the MAP_RF identifier.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MetaBase: IMetabase;
TopoBase: IMapTopobase;
Map: IMap;
Begin
MetaBase := MetabaseClass.Active;
TopoBase := MetaBase.ItemById("MAP_RF").Bind As IMapTopobase;
Map := UiMap1.Map;
Map.Topobase := TopoBase;
End Sub Button1OnClick;
After executing the example the MAP_RF map is loaded to the MapBox component.
See also: