Source: IMapSource;
The Source property determines a component data source.
Executing the example requires that the repository contains a form with the components:
NavigationBar with the NavigationBar1 identifier.
MapWidget with the MapWidget1 identifier.
MapBox with the MapBox1 identifier.
UiMap with the UiMap1 identifier.
It is also required to have a map that is a data source for UiMap1.
Sub UserProc;
Begin
// Specify data source for the MapBox component
MapBox1.Source := UiMap1 As IMapSource;
// Activate the MapWidget component
MapWidget1.Active := True;
// Connect the NavigationBar component to MapWidget
MapWidget1.NavBar := NavigationBar1;
// Specify data source for the MapWidget component
MapWidget1.Source := UiMap1 As IMapSource;
End Sub UserProc;
After executing the example it is possible to work with a map using the NavigationBar component.
See also: