Click or drag to resize

XMapLayerFactoryUpdateXMapMaxZoom Method

Updates the maximum zoom for the XMapServer layers.

Namespace:  Ptv.XServer.Controls.Map.Layers
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public static void UpdateXMapMaxZoom(
	this LayerCollection layers,
	int maxZoom,
	Nullable<int> maxZoomLabels = null
)

Parameters

layers
Type: Ptv.XServer.Controls.MapLayerCollection
The LayerCollection instance.
maxZoom
Type: SystemInt32
Maximum zoom value to set. See remarks.
maxZoomLabels (Optional)
Type: SystemNullableInt32
Maximum zoom for the label layer. See remarks.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type LayerCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Update the maximum zoom for the background and the label layer. If maxZoomLabels is unspecified, maxZoom will be used for both layers. If maxZoomLabels is specified, maxZoom determines the value for the background and maxZoomLabels the value for the label layer.
See Also