Back to Devexpress

TdxCustomMapControl.ZoomToFitLayerItems(TdxCustomMapItemLayerList,Double) Method

vcl-dxmapcontrol-dot-tdxcustommapcontrol-dot-zoomtofitlayeritems-x28-dxcustommapitemlayer-dot-tdxcustommapitemlayerlist-system-dot-double-x29.md

latest2.1 KB
Original Source

TdxCustomMapControl.ZoomToFitLayerItems(TdxCustomMapItemLayerList,Double) Method

Centers and zooms the map on map items stored in specified layers, with optional padding around them.

Declaration

delphi
procedure ZoomToFitLayerItems(ALayers: TdxCustomMapItemLayerList; const APaddingFactor: Double = dxMapControlDefaultZoomPaddingFactor);

Parameters

NameType
ALayersTdxCustomMapItemLayerList
APaddingFactorDouble

Remarks

This procedure does the following:

  • Iterates through a list of map layers passed as the ALayers parameter and obtains map items from those that are rendered on the map;

  • Calls the ZoomToFitItems procedure and passes the obtained map items and the APaddingFactor parameter value as parameters.

Refer to the ZoomToFitItems procedure description to learn about parameter specifics.

See Also

TdxCustomMapControl.OnZoomLevelChanged

TdxCustomMapControl.OnZoomLevelChanging

TdxCustomMapControl.Zoom

TdxCustomMapControl.ZoomAsync

TdxCustomMapControl.ZoomIn

TdxCustomMapControl.ZoomOut

TdxCustomMapControl.ZoomToGeoRect

TdxCustomMapControl Class

TdxCustomMapControl Members

dxMapControl Unit