BoundsMapView Example - Java
The following shows a Java example that returns a BoundsMapView object.
public static BoundsMapView getBoundsMapView() throws Exception
{
BoundsMapView boundsMapView = new BoundsMapView();
boundsMapView.setHeight(600);
boundsMapView.setWidth(800);
boundsMapView.setUnit(PaperUnit.PIXEL);
//sets the map resolution. If not specified, the default one is set to 96 DPI
//boundsMapView.setMapResolution(200);
boundsMapView.setBounds(BuildGeometry.buildEnvelope());
return boundsMapView;
}