Back to Devexpress

TdxCustomMapControl.Zoom(Double,Boolean) Method

vcl-dxmapcontrol-dot-tdxcustommapcontrol-dot-zoom-x28-system-dot-double-system-dot-boolean-x29.md

latest2.0 KB
Original Source

TdxCustomMapControl.Zoom(Double,Boolean) Method

Zooms the map to a specified level with optional animation.

Declaration

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

Parameters

NameType
AZoomLevelDouble
AAnimatedBoolean

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

TdxCustomMapControl.OnZoomLevelChanged

TdxCustomMapControl.OnZoomLevelChanging

TdxCustomMapControl.ZoomIn

TdxCustomMapControl.ZoomOut

TdxCustomMapControl.ZoomToFitItems

TdxCustomMapControl.ZoomToFitLayerItems

TdxCustomMapControl.ZoomToGeoRect

TdxCustomMapControl Class

TdxCustomMapControl Members

dxMapControl Unit