Collapse All Expand All Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JavaScript

Visual Basic
C#
Visual C++
JavaScript

Easy GIS .NET API Reference
SFMap..::.Zoom Property
SFMap Class See Also Send Feedback

Gets or sets the current ZoomLevel of the SFMap

Namespace: EGIS.Web.Controls
Assembly: EGIS.Web.Controls (in EGIS.Web.Controls.dll)

# Syntax

Visual Basic (Declaration)
    <BindableAttribute(True)> _
    Public Property Zoom As Single

C#
    [BindableAttribute(true)]
    public float Zoom { get; set; }

Visual C++
    [BindableAttribute(true)]
    public:
    property float Zoom {
    	float get ();
    	void set (float value);
    }

# Remarks

Changing the ZoomLevel will zoom into or out of the map. Increasing the ZoomLevel will zoom into the map, while decreasing the ZoomLevel will zoom out of the map

The ZoomLevel, CenterPoint, Width and Height of the SFMap determine the location and visible area of the rendered map. The map will be rendered centered at the CenterPoint and scaled according to the ZoomLevel.

# Exceptions

Exception | Condition
--- | ---
System..::.ArgumentException | if ZoomLevel less than or equal to zero

# See Also

SFMap Class
EGIS.Web.Controls Namespace
SFMap..::.CenterPoint