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.