BoundsMapView Example - C#

The following shows a C# example that returns a BoundsMapView object.



public static BoundsMapView createBoundMapView()
{
    BoundsMapView bmv = new BoundsMapView();
    bmv.Bounds = BuildGeometry.buildEnvelope();
    bmv.Height = 600;
    bmv.Width = 800;
    bmv.unit = PaperUnit.Pixel;
    //sets the map resolution. If not specified, the default one is set to 96 DPI
    //bmv.mapResolution = 200;

    return bmv;
}