ESRI.ArcGIS.ADF.Web.UI.WebControls
PreferredTileWidth Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Map Class : PreferredTileWidth Property




The preferred tile width to request if the resources are not bound to a tile caching scheme.

Syntax

Visual Basic (Declaration) 
<ResCategoryAttribute("Image Output")>
<ResDescriptionAttribute("The preferred tile width in pixels to request if the resources are not bound to a tile caching scheme. When 0, the tile width will equal the Map control width.")>
<DefaultValueAttribute()>
<PersistenceModeAttribute()>
Public Property PreferredTileWidth As Integer
Visual Basic (Usage)Copy Code
Dim instance As Map
Dim value As Integer
 
instance.PreferredTileWidth = value
 
value = instance.PreferredTileWidth
C# 
[ResCategoryAttribute("Image Output")]
[ResDescriptionAttribute("The preferred tile width in pixels to request if the resources are not bound to a tile caching scheme. When 0, the tile width will equal the Map control width.")]
[DefaultValueAttribute()]
[PersistenceModeAttribute()]
public int PreferredTileWidth {get; set;}

Remarks

If set, this property determines the width of map image tiles requested from the map server(s). If left at the default of 0, the tile width will equal the current Map control width.

Using a cached map service may override preferred tile width

The PreferredTileWidth and PreferredTileHeight properties are ignored if the Map's MapResourceManager contains an ArcGIS Server service that uses a tiled cache, and the Map.PrimaryMapResource property is either not set, or is set to the cached map service. In these cases, the Map will use the tile width of the cached map service. In order to override the cached tile width, you would have to set PrimaryMapResource to a service that does not have a tile cache.

See Also

© 2010 All Rights Reserved.