Ejemplo de ScaleAndCenterMapView - C#
A continuaciĆ³n, se muestra un ejemplo C# que arroja un objeto ScaleAndCenterMapView.
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;
}