|
LuciadCPillar C# 2026.0.04
|
A layer for feature models. More...
Classes | |
| class | Builder |
Builder for the FeatureLayer class. More... | |
Public Member Functions | |
| Luciad.Layers.Features.FeatureLayer.Builder | AsBuilder () |
| Returns a new builder based on this layer instance. | |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
| Public Member Functions inherited from Luciad.Layers.Layer | |
| void | AddObserver (Luciad.Layers.ILayerObserver layerObserver) |
| Adds an observer that allows to receive change events from this layer. | |
| void | Dispose () |
| void | RemoveObserver (Luciad.Layers.ILayerObserver layerObserver) |
| Removes the given observer. | |
Static Public Member Functions | |
| static Luciad.Layers.Features.FeatureLayer.Builder | NewBuilder () |
Returns a new builder for creating a FeatureLayer. | |
Properties | |
| Luciad.Layers.Features.DensitySettings | DensitySettings [get, set] |
| The layer's density settings. | |
| Luciad.Edit.Features.IFeatureEditConfiguration | EditConfiguration [get] |
| The edit configuration if editing is supported, or null. | |
| Luciad.Models.Features.IFeatureGeometryProvider | EditCreateGeometryProvider [get] |
The edit/create geometry provider for a Feature. | |
| bool | IsEditable [get, set] |
| Whether this layer is editable. | |
| bool | IsLabeled [get, set] |
| Whether this layer displays labels. | |
| bool | IsQueryable [get, set] |
Whether the features of this layer can be returned in the Map.QueryFeatures method. | |
| Luciad.Layers.Features.FeatureLayerLoadingStrategy | LoadingStrategy [get] |
| The loading strategy that is used. | |
| Luciad.Models.Features.IFeatureModel | Model [get] |
| The layer's model, which provides the features to present. | |
| Luciad.Layers.Features.IFeaturePainter | Painter [get, set] |
| The layer's painter, which determines how the features are presented. | |
| static string | PropertyDensitySettings = PropertyDensitySettingsInternal() [get] |
The property name for the LayerEvent that is fired as a result of changing the layer's DensitySettings. | |
| static string | PropertyEditable = PropertyEditableInternal() [get] |
The property name for the LayerEvent that is fired as a result of changing the layer's editable flag. | |
| static string | PropertyLabeled = PropertyLabeledInternal() [get] |
The property name for the LayerEvent that is fired as a result of changing the layer's labeled flag. | |
| static string | PropertyPainter = PropertyPainterInternal() [get] |
The property name for the LayerEvent that is fired as a result of changing the layer's IFeaturePainter. | |
| static string | PropertyQueryable = PropertyQueryableInternal() [get] |
The property name for the LayerEvent that is fired as a result of changing the layer's queryable flag. | |
| Luciad.Layers.Features.FeatureQueryConfiguration | QueryConfiguration [get] |
| The query configuration, which specifies which feature to present at different map scales. | |
| Properties inherited from Luciad.Layers.Layer | |
| ulong | Id [get] |
| The layer's unique id. | |
| bool | IsBusy [get] |
| Whether this layer is busy loading data, rendering, loading attributions, or anything else. | |
| bool | IsVisible [get, set] |
| Whether this layer is visible. | |
| static string | PropertyBusy = PropertyBusyInternal() [get] |
Property name for the LayerEvent that is fired as a result of the layer's busy flag changing. | |
| static string | PropertyTitle = PropertyTitleInternal() [get] |
Property name for the LayerEvent that is fired as a result of changing the layer's title. | |
| static string | PropertyVisible = PropertyVisibleInternal() [get] |
Property name for the LayerEvent that is fired as a result of changing the layer's visible flag. | |
| string | Title [get, set] |
| The layer's title. | |
A layer for feature models.
Use FeatureLayer.NewBuilder to create a feature layer instance.
|
inline |
Returns a new builder based on this layer instance.
You can use this builder, for example, to create a copy of this layer.
Note that this function will not make copies of the used IFeatureModel or IFeaturePainter, but use the same instances that are present on this layer. You need to make sure that these are thread-safe and can handle concurrent usage.
Also note that observers will not be transferred to a new layer.
|
inline |
|
inline |
|
inlinestatic |
Returns a new builder for creating a FeatureLayer.
FeatureLayer.
|
getset |
The layer's density settings.
Returns the layer's density settings. The returned value is the currently set density settings, or null if density painting is not active.
Sets the layer's density settings. Can be set to null to deactivate density painting.
When density painting is active, the color map in the density settings is used to determine the colors of shapes drawn by the IFeaturePainter.
DensitySettings documentation for more information.
|
get |
The edit configuration if editing is supported, or null.
Returns the edit configuration if editing is supported, or null. Whether or not the layer can be edited by the user is controlled using setEditable.
|
get |
|
getset |
Whether this layer is editable.
Returns whether this layer is editable. A layer is editable if it has an IFeatureEditConfiguration and if the editable flag is set.
Sets whether this layer is editable. If the new value is different from the old one, a LayerEvent is delivered to the observers with the property name FeatureLayer.propertyEditable.
This flag is checked by the Editor when receiving events from the IFeatureEditCandidateProvider in conjunction with the model's IFeatureModelUpdater and the layer's IFeatureEditConfiguration.
This flag is true by default. This flag has no effect if the layer does not contain an IFeatureEditConfiguration or if the model's IFeatureModelUpdater is missing.
setEditable
|
getset |
Whether this layer displays labels.
Returns whether this layer displays labels.
Sets whether this layer displays labels. Note that in order for the layer to display labels, its IFeaturePainter should also call the FeatureCanvas.DrawLabel method for its features. If not, no labels will be displayed, regardless of this setting.
|
getset |
Whether the features of this layer can be returned in the Map.QueryFeatures method.
Returns whether the features of this layer can be returned in the Map.QueryFeatures method.
Sets whether the features of this layer can be returned in the Map.QueryFeatures method. The default is true.
It is useful to set this property to false when:
SelectEventHandler or HoverEventHandler classes. Map.QueryFeatures method, for example for a layer with many features that don't need to be selected.
|
get |
The loading strategy that is used.
Returns the loading strategy that is used.
|
get |
The layer's model, which provides the features to present.
Returns the layer's model, which provides the features to present.
|
getset |
The layer's painter, which determines how the features are presented.
Returns the layer's painter, which determines how the features are presented.
Sets the layer's painter, which determines how the features are presented. It will replace the IFeaturePainter that was set using the FeatureLayer.Builder.Painter method, or if that method was not called, it will replace the default feature painter.
Limitation: This method currently only supports setting a new IFeaturePainter with the exact same level of details as the previous painter. If this is not the case, this method will throw an exception.
| System.ArgumentNullException | when the given feature painter is null |
| System.ArgumentException | when the new painter has different detail levels than the previous painter |
|
staticget |
The property name for the LayerEvent that is fired as a result of changing the layer's DensitySettings.
Returns the property name for the LayerEvent that is fired as a result of changing the layer's DensitySettings.
FeatureLayer.DensitySettings
|
staticget |
The property name for the LayerEvent that is fired as a result of changing the layer's editable flag.
Returns the property name for the LayerEvent that is fired as a result of changing the layer's editable flag.
setEditable
|
staticget |
The property name for the LayerEvent that is fired as a result of changing the layer's labeled flag.
Returns the property name for the LayerEvent that is fired as a result of changing the layer's labeled flag.
setLabeled
|
staticget |
The property name for the LayerEvent that is fired as a result of changing the layer's IFeaturePainter.
Returns the property name for the LayerEvent that is fired as a result of changing the layer's IFeaturePainter.
Painter
|
staticget |
The property name for the LayerEvent that is fired as a result of changing the layer's queryable flag.
Returns the property name for the LayerEvent that is fired as a result of changing the layer's queryable flag.
setQueryable
|
get |
The query configuration, which specifies which feature to present at different map scales.
Returns the query configuration, which specifies which feature to present at different map scales.