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

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

Syntax

Visual Basic
Public Property CentrePoint2D As PointD
	Get
	Set
C#
public PointD CentrePoint2D { get; set; }
Visual C++
public:
property PointD CentrePoint2D {
	PointD get ();
	void set (PointD value);
}
JavaScript
function get_centrePoint2D();
function set_centrePoint2D(value);

Remarks

This method replaces the obsolete CentrePoint property

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

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

See Also