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..::.CenterPoint Property
SFMap Class See Also Send Feedback

Gets or sets the center point of the map in mapping coordinates (as used by the shapefiles)

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

# Syntax

Visual Basic (Declaration)
    <BindableAttribute(True)> _
    Public Overridable Property CenterPoint As PointD

C#
    [BindableAttribute(true)]
    public virtual PointD CenterPoint { get; set; }

Visual C++
    [BindableAttribute(true)]
    public:
    virtual property PointD CenterPoint {
    	PointD get ();
    	void set (PointD value);
    }

# Remarks

Changing the CenterPoint can be used to center the map on a new location without changing the map scale

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.

# See Also

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