ESRI.ArcGIS.ADF.Web.DataSources.VirtualEarthService
GetScale Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.VirtualEarthService Namespace > MapFunctionality Class : GetScale Method




extent
Extent
mapWidth
Width of map in pixels
mapHeight
Height of map in pixels
Gets the scale of an extent at a given map size and screen resolution set on the DisplaySettings property.

Syntax

Visual Basic (Declaration) 
Public Function GetScale( _
   ByVal extent As Envelope, _
   ByVal mapWidth As Integer, _
   ByVal mapHeight As Integer _
) As Double
Visual Basic (Usage)Copy Code
Dim instance As MapFunctionality
Dim extent As Envelope
Dim mapWidth As Integer
Dim mapHeight As Integer
Dim value As Double
 
value = instance.GetScale(extent, mapWidth, mapHeight)
C# 
public double GetScale( 
   Envelope extent,
   int mapWidth,
   int mapHeight
)

Parameters

extent
Extent
mapWidth
Width of map in pixels
mapHeight
Height of map in pixels

Return Value

Scale

Remarks

The scale is calculated at the center of the extent, and changes with the distance to Equator.

See Also

© 2010 All Rights Reserved.