Beispiel für BoundsMapView – C#

Im Folgenden wird ein C#-Beispiel dargestellt, in dem ein BoundsMapView-Objekt zurückgegeben wird.



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;
}