Click or drag to resize

LayerCollection Class

Container class managing the set of all available ILayer objects. Especially the visibility and selection property is managed by this class.
Inheritance Hierarchy

Namespace:  Ptv.XServer.Controls.Map
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public class LayerCollection : ObservableCollection, 
	ICloneable, IDisposable

The LayerCollection type exposes the following members.

Constructors
  NameDescription
Public methodLayerCollection
Initializes a new instance of the LayerCollection class.
Top
Properties
  NameDescription
Public propertyExclusiveSelectableLayer
Gets or sets the layer which is the one-and-only selectable layer.
Public propertyItem
Index operator for the set of layers, accepting the layer name for comparison.
Public propertyLayerSettings
Gets or sets the interface, which is used when the settings of a layer have to be shown. Due to the fact, that this class does not know the styles of the GUI, the dialogs are deferred to the client application implementing such an ILayerSettings-interface.
Top
Methods
  NameDescription
Public methodClone
Creates a new object that is a copy of the current instance.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodInsertBefore
Insert a layer before another layer.
Public methodIsSelectable
Retrieves if the layer is selectable taking into account whether it is exclusively selectable.
Public methodIsSelectableBase
Retrieves if the layer is selectable without taking into account whether it is exclusively selectable.
Public methodIsVisible
Retrieves for a layer whether it is visible.
Public methodRegister
Connect a MapView-object to the called LayerCollection. In return, only visible layers are connected to the Map object.
Public methodSetSelectable
Sets the selectable flag of the layer, if the layer is not exclusive selectable.
Public methodSetVisible
Set the visibility of the specified layer.
Public methodShowSettingsDialog
Activates the settings dialog, if an ILayerSettings-interface is set by the client application.
Public methodUnregister
Disconnect a MapView-object from the called LayerCollection. In return, all visible layers are disconnected from the Map object.
Top
Events
  NameDescription
Public eventLayerAdded
Callback for indicating the insertion of a new layer to this collection. This is useful when layer specific callbacks have to be set, for example to indicate a layer's property change.
Public eventLayerRemoved
Callback for indicating the removal of a layer from this collection. It becomes important when layer specific callbacks were set in LayerAdded, and have to be removed now.
Public eventLayerSelectabilityChanged
Callback for indicating the selectability changing.
Public eventLayerVisibilityChanged
Callback for indicating the visibility changing.
Top
Extension Methods
  NameDescription
Public Extension MethodInsertXMapBaseLayers
Inserts the xMapServer base layers, i.e. the background layers for areas like forests, rivers, population areas, et al, and their corresponding labels.
(Defined by XMapLayerFactory.)
Public Extension MethodRemoveXMapBaseLayers
Removes all xMapServer base layers.
(Defined by XMapLayerFactory.)
Public Extension MethodUpdateXMapCoprightText
Updates the copyright text for the XMapServer layers.
(Defined by XMapLayerFactory.)
Public Extension MethodUpdateXMapMaxZoom
Updates the maximum zoom for the XMapServer layers.
(Defined by XMapLayerFactory.)
Public Extension MethodUpdateXMapMinZoom
Updates the minimum zoom for the XMapServer layers.
(Defined by XMapLayerFactory.)
Public Extension MethodUpdateXMapProfiles
Updates the profiles to be used in xMap Server requests.
(Defined by XMapLayerFactory.)
Top
See Also