Skip to main content

TdxCustomMapControl.Zoom(Double,Boolean) Method

Zooms the map to a specified level with optional animation.

Declaration

procedure Zoom(AZoomLevel: Double; AAnimated: Boolean); overload;

Parameters

Name Type
AZoomLevel Double
AAnimated Boolean

Remarks

This method assigns AZoomLevel to the ZoomLevel property. Refer to the property description to learn how the map control responds to property value changes.

Use the AAnimated parameter to control if zooming is animated. This parameter value overrides the map control’s OptionsBehavior.Animation property setting.

Note

If you are using external controls to change the zoom level, we recommend that you call the ZoomAsync method to keep your application responsive.

See Also