UseProportionality: Boolean;
The UseProportionality property determines whether the original aspect ratio of the map is preserved.
Available values:
True - proportions are observed.
False - proportions are not observed.
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:
The map is turned to the scale increase mode.
Proportionality of width and height is not observed for the map.
Scrollbars are used for the map.
Tooltips are used for the map.
See also: