ESRI.ArcGIS.ADF.Web | |
ZoomOut Method | |
See Also |
ESRI.ArcGIS.ADF.Web Namespace > NavigationUtility Class : ZoomOut Method |
- currentExtent
- The current map extent. NOTE: this method will modify this envelope.
- zoomBoxExtent
- The extent to use for zooming out on the map.
Visual Basic (Declaration) | |
---|---|
Public Shared Sub ZoomOut( _ ByVal currentExtent As Envelope, _ ByVal zoomBoxExtent As Envelope _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static void ZoomOut( Envelope currentExtent, Envelope zoomBoxExtent ) |
Parameters
- currentExtent
- The current map extent. NOTE: this method will modify this envelope.
- zoomBoxExtent
- The extent to use for zooming out on the map.
This method updates the input extent (currentExtent) so that it is zoomed out
based on the input zoomBoxExtent. The zoomBoxExtent should be smaller than the
currentExtent in both x and y dimensions. The width and height of the new extent is a
fraction of the current extent based on the ratio of the current width or height to the
zoom box width or height. The smaller the zoom box is compared to the current extent,
the more the extent will zoom out. Another way of thinking about this is that the area
covered by the currentExtent is reduced to the size of the zoom box, and the new extent
extends to cover the surrounding area.