IMapView.UseProportionality

Syntax

UseProportionality: Boolean;

Description

The UseProportionality property determines whether the original aspect ratio of the map is preserved.

Comments

Available values:

Example

Executing the example requires a form with the following components: the Button component named Button1, the MapBox component named MapBox1, and the UiMap component named UiMap1. UiMap1 is a data source for MapBox1. The map must be connected to the UiMap1 component.

The example is a handler of the OnClick event for the Button1 component.

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MapView: IMapView;
Begin
    MapView := UiMap1.Map.View;
    // Determine map interactive mode
    MapView.WndMode := MapViewWndMode.ZoomIn;
    // Determine whether map width and height are proportional
    MapView.UseProportionality:= False;
    // Determine whether scrollbars are used
    MapView.UseScrollBars := True;
    // Determine whether tooltips are used
    MapView.UseToolTips:= True;
End Sub Button1OnClick;

After executing the example:

See also:

IMapView