ESRI.ArcGIS.ADF.Web.DataSources
GetScale Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources Namespace > IMapFunctionality Interface : GetScale Method




extent
Extent of the map.
mapWidth
Width of the map in pixels.
mapHeight
Height of the map in pixels.
Calculates the map scale for the input map extent and map size.

Syntax

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

Parameters

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

Return Value

Scale of the map.

See Also

© 2010 All Rights Reserved.