LayerCollectionSetVisible Method |
Set the visibility of the specified layer.
Namespace:
Ptv.XServer.Controls.Map
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public void SetVisible(
ILayer layer,
bool visible
)
Public Sub SetVisible (
layer As ILayer,
visible As Boolean
)
public:
void SetVisible(
ILayer^ layer,
bool visible
)
member SetVisible :
layer : ILayer *
visible : bool -> unit
Parameters
- layer
- Type: Ptv.XServer.Controls.Map.LayersILayer
Layer of which the visibility should be modified. - visible
- Type: SystemBoolean
Flag indicating the (in-)visibility of the layer.
Remarks The visibility is set for all maps added to the LayerCollection via
Register(MapView).
A layer can not be hidden in one map and shown in another one.
See Also