LayerSet Class
Represents a grouping node in a layer tree.
NuGet/Assembly: Carmenta.Engine.5.16.2.nupkg (in the CECore assembly)
Syntax
public class LayerSet : Layer
Remarks
A LayerSet groups other layers together. In a configuration with many layers, LayerSet objects can be used to organize the layers into a more manageable layer tree, instead of a flat list. Since LayerSet is in itself a Layer, you can put layer sets inside other layer sets.
Properties of a LayerSet affect the whole group. For instance, you can turn the whole group off with the Enabled property. A layer is drawn if, and only if, the layer itself and all is LayerSet ancestors are turned on. The same is true for the Selectable property.
LayerSet instances can be used directly, but there are also sub-classes that implement different types of buffering, like BitmapLayer and TileLayer.
Inheritance Hierarchy
System.Object (not available in C#)
EngineObject
Layer
LayerSet
AggregatingLayer
BitmapLayer
CatalogLayer
CatalogLoadLayerSet
GlobeTileLayer
HttpLayer
LabelOrganizingLayer
LoadLayerSet
OgcWmsServerLayer
TileLayer
Platforms
Windows, Linux, Android
LayerSet Members
The LayerSet type has the following members.
Constructors
Name | Description |
---|---|
LayerSet | Initializes a new instance of the LayerSet class. |
Properties
Name | Description |
---|---|
BlendMode | Gets or sets the blend mode that determines how the layer is combined with previously rendered layers. Inherited from Layer |
Condition | Gets or sets the Condition that determines whether the LayerSet is drawn or not. Inherited from Layer |
CoverageHint | Gets or sets a value that can assert that the visualization is fully opaque within the data extent. Inherited from Layer |
Description | Gets or sets a short description of the layer. Inherited from Layer |
DisableOnError | Gets or sets a value specifying if an error within the layer should automatically disable the layer, or throw an exception. Inherited from Layer |
DisplayName | Gets or sets a display name for the layer. Inherited from Layer |
Effects | List of effects Inherited from Layer |
Enabled | Determines whether the LayerSet is enabled or not. Inherited from Layer |
EnabledDuringQuickUpdates | Determines whether the LayerSet is temporarily turned off during mouse interactions. Inherited from Layer |
IsDisposed | Gets a value that tells whether the current LayerSet has been disposed. Inherited from EngineObject |
IsoMetadataDocument | Gets or sets the path or URL to an ISO 19139 metadata document for the layer. Inherited from Layer |
Layers | Gets the child layers of this LayerSet. |
Legend | Gets or sets a map legend associated with this layer. Inherited from Layer |
MaxScale | Gets or sets the highest inverted nominal scale in a 2D view, or the furthest distance in a 3D globe view, at which objects from this LayerSet should be drawn. Inherited from Layer |
MinScale | Gets or sets the lowest inverted nominal scale this LayerSet should be drawn at. Inherited from Layer |
Name | Gets or sets the name of the layer. Inherited from Layer |
NamedStyles | Gets the list of named styles that can be enabled for the layer. Inherited from Layer |
NativeHandle | Gets the native Carmenta Engine kernel object the current LayerSet represents. Inherited from EngineObject |
Opacity | Gets or sets a value that specifies the opacity of the layer. Inherited from Layer |
Selectable | Gets or sets a value that determines whether features in this LayerSet can be selected. Inherited from Layer |
IUserProperties.UserProperties | Gets the AttributeSet that contains the user properties. Inherited from IUserProperties |
Methods
Name | Description |
---|---|
Clone | Creates a copy of an object. Inherited from EngineObject |
Dispose | Releases the reference to the native Carmenta Engine kernel instance the EngineObject represents. Inherited from EngineObject |
EnableStyle | Enables or disables a named style for the layer. Inherited from Layer |
Equals | Determines whether this instance is equal to another. Inherited from EngineObject |
FindChildObject | Overloaded. Finds the child object with the specified name. Inherited from Layer |
FlushCache | Marks the layer as flushed which will release cached resources during the next update. Inherited from Layer |
GetChildObjects | Overloaded. Gets the child objects of the current object. Inherited from Layer |
GetDataBounds | Calculates the bounds of all dataset coverages in the layer. Inherited from Layer |
GetFeatureAttributes | Gets information about all attributes that may be present on features in this layer. Inherited from Layer |
GetFeatures | Overloaded. Gets features from the layer and any child layers. Inherited from Layer |
GetLastError | Gets the error message for the last error that occurred within the layer. Inherited from Layer |
GetLocalizedDescription | Gets a localized version of the layer description in a specific language. Inherited from Layer |
GetLocalizedDisplayName | Gets a localized version of the layer display name in a specific language. Inherited from Layer |
GetLocalizedIsoMetadataDocument | Gets the path to an ISO 19139 metadata document for a specific language. Inherited from Layer |
HasLocalizedDescription | Checks if a localized version of the layer description is available in a specific language. Inherited from Layer |
HasLocalizedDisplayName | Checks if a localized version of the layer display name is available in a specific language. Inherited from Layer |
HasLocalizedIsoMetadataDocument | Checks if an ISO 19139 metadata document is available for a specific language. Inherited from Layer |
IsStyleEnabled | Checks if a certain style is enabled for the layer or not. Inherited from Layer |
MoveLayer | Moves a child layer to a new position. |
SetLocalizedDescription | Sets a layer description in a specific language. Inherited from Layer |
SetLocalizedDisplayName | Sets a layer display name in a specific language. Inherited from Layer |
SetLocalizedIsoMetadataDocument | Sets the path to an ISO 19139 metadata document for the layer, for a specific language. Inherited from Layer |
Events
Name | Description |
---|---|
EnabledChanged | Occurs when the value of the Enabled property has changed. Inherited from Layer |