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
)
<ExtensionAttribute>
Public Shared Sub UpdateXMapMaxZoom (
layers As LayerCollection,
maxZoom As Integer,
Optional maxZoomLabels As Nullable(Of Integer) = Nothing
)
public:
[ExtensionAttribute]
static void UpdateXMapMaxZoom(
LayerCollection^ layers,
int maxZoom,
Nullable<int> maxZoomLabels = nullptr
)
[<ExtensionAttribute>]
static member UpdateXMapMaxZoom :
layers : LayerCollection *
maxZoom : int *
?maxZoomLabels : Nullable<int>
(* Defaults:
let _maxZoomLabels = defaultArg maxZoomLabels null
*)
-> unit
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