ScaleAndCenterMapView Example - C#
The following shows a C# example that returns a ScaleAndCenterMapView object.
public static ScaleAndCenterMapView createScaleAndCenterMapView()
{
ScaleAndCenterMapView scaleAndCenterMapView = new ScaleAndCenterMapView();
scaleAndCenterMapView.Height = 600;
scaleAndCenterMapView.Width = 800;
scaleAndCenterMapView.Scale = 20000;
scaleAndCenterMapView.unit = PaperUnit.Pixel;
//sets the map resolution. If not specified, the default one is set to 96 DPI
//scaleAndCenterMapView.mapResolution = 200;
Point point = BuildGeometry.buildPoint();
scaleAndCenterMapView.MapCenter = point;
return scaleAndCenterMapView;
}