RubberBand zoom


Purpose
This sample uses the RubberPolygon object. This object is similar to RubberBand objects that are used to digitize geometries on the display using the mouse, either to create new geometry objects or to update existing ones. RubberBand objects can be thought of as simple versions of the Feedback objects in the Display application programming interface (API).


This sample demonstrates how to draw an extent on the map for the purpose of zooming in.

How to use

See How to use ArcGIS samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Run the sample.


Download the files for Java
display/RubberBandZoom.java Main class




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime