ESRI.ArcGIS.ADF.Web.UI.WebControls
GetMatchingLevelIndex Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TileDrawExtent Class : GetMatchingLevelIndex Method




tileInfo
Object with information on the tile cache.
extentToDraw
The map extent.
imageDescriptor
Contains information on the image drawn.
exactMatch
Whether the input extent matches a tile extent.
matchingExtent
The matching extent in the tile cache.
Get level of zoom based on resolution value.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetMatchingLevelIndex( _
   ByVal tileInfo As TileCacheInfo, _
   ByVal extentToDraw As Envelope, _
   ByVal imageDescriptor As ImageDescriptor, _
   ByRef exactMatch As Boolean, _
   ByRef matchingExtent As Envelope _
) As Integer
Visual Basic (Usage)Copy Code
Dim tileInfo As TileCacheInfo
Dim extentToDraw As Envelope
Dim imageDescriptor As ImageDescriptor
Dim exactMatch As Boolean
Dim matchingExtent As Envelope
Dim value As Integer
 
value = TileDrawExtent.GetMatchingLevelIndex(tileInfo, extentToDraw, imageDescriptor, exactMatch, matchingExtent)
C# 
public static int GetMatchingLevelIndex( 
   TileCacheInfo tileInfo,
   Envelope extentToDraw,
   ImageDescriptor imageDescriptor,
   out bool exactMatch,
   out Envelope matchingExtent
)

Parameters

tileInfo
Object with information on the tile cache.
extentToDraw
The map extent.
imageDescriptor
Contains information on the image drawn.
exactMatch
Whether the input extent matches a tile extent.
matchingExtent
The matching extent in the tile cache.

Return Value

Tile level corrsponding to the input extent.

See Also

© 2010 All Rights Reserved.