IMapWidget.Source

Syntax

Source: IMapSource;

Description

The Source property determines a component data source.

Example

Executing the example requires that the repository contains a form with the components:

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:

IMapWidget