Back to Devexpress

MapControl.Zoom(Double) Method

windowsforms-devexpress-dot-xtramap-dot-mapcontrol-dot-zoom-x28-system-dot-double-x29.md

latest2.2 KB
Original Source

MapControl.Zoom(Double) Method

Zooms a map to the specified level.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public void Zoom(
    double zoomLevel
)
vb
Public Sub Zoom(
    zoomLevel As Double
)

Parameters

NameTypeDescription
zoomLevelDouble

A double value specifying the level to which a map should be zoomed.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Zoom(Double) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

map-for-winforms-azure-routing/CS/Form1.cs#L47

csharp
waypointsListBoxControl.DataSource = geoPoints;
mapControl.Zoom(6);
mapControl.SetCenterPoint(new GeoPoint(40.714627, -74.002863), false);

map-for-winforms-azure-routing/VB/Form1.vb#L41

vb
waypointsListBoxControl.DataSource = geoPoints
mapControl.Zoom(6)
mapControl.SetCenterPoint(New GeoPoint(40.714627, -74.002863), False)

See Also

MapControl Class

MapControl Members

DevExpress.XtraMap Namespace