Setting a Visual Extent

boxes, box, marker

Use a boxes layer to visually display the area of interest indicated by a user.

Because the ability to set the map to a given extent is limited by the current resolutions available, zoomToExtent will not always set the map to exactly the right extent. In order to visually annotate the actual extent, this example, will use the Boxes layer to visually describe the desired extent as well as setting the map extent.