IMapWidget.Source

Syntax

Source: IMapSource;

Description

The Source property determines a component data source.

Example

Executing the example requires a form with the following components: the NavigationBar component named NavigationBar1, the MapWidget component named MapWidget1, the MapBox component named MapBox1, and the UiMap component named UiMap1. The map must be connected to the UiMap1 component.

Add links to the ExtCtrls, Forms, and Map system assemblies.

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