BoundsMapView Example - Java - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2025-03-07
ft:lastPublication
2025-03-07T10:28:48.112000

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