LuciadCPillar C# 2025.0
Luciad.Layers.Features.FeatureLayer.Builder Class Reference

Builder for the FeatureLayer class. More...

Inheritance diagram for Luciad.Layers.Features.FeatureLayer.Builder:

Public Member Functions

 Builder (Luciad.Layers.Features.FeatureLayer.Builder other)
 
Luciad.Layers.Features.FeatureLayer Build ()
 Returns a new layer, based on the properties set on this builder. More...
 
Luciad.Layers.Features.FeatureLayer.Builder DensitySettings (Luciad.Layers.Features.DensitySettings densitySettings)
 Sets the layer's density settings. More...
 
void Dispose ()
 
Luciad.Layers.Features.FeatureLayer.Builder Editable (bool editable)
 Sets whether the layer should be editable initially. More...
 
Luciad.Layers.Features.FeatureLayer.Builder EditConfiguration (Luciad.Edit.Features.IFeatureEditConfiguration editConfiguration)
 Enables editing capabilities using the given IFeatureEditConfiguration. More...
 
Luciad.Layers.Features.FeatureLayer.Builder EditCreateGeometryProvider (Luciad.Models.Features.IFeatureGeometryProvider geometryProvider)
 Provides the edit/create geometry provider for a Feature. More...
 
Luciad.Layers.Features.FeatureLayer.Builder Labeled (bool labeled)
 Sets whether the layer should display labels initially. More...
 
Luciad.Layers.Features.FeatureLayer.Builder LoadingStrategy (Luciad.Layers.Features.FeatureLayerLoadingStrategy loadingStrategy)
 Sets the FeatureLayerLoadingStrategy to use. More...
 
Luciad.Layers.Features.FeatureLayer.Builder Model (Luciad.Models.Features.IFeatureModel model)
 Sets the feature model of the layer. More...
 
Luciad.Layers.Features.FeatureLayer.Builder Painter (Luciad.Layers.Features.IFeaturePainter featurePainter)
 Sets the IFeaturePainter to use. More...
 
Luciad.Layers.Features.FeatureLayer.Builder Queryable (bool queryable)
 Sets whether the features in this layer can be returned in the Map.QueryFeatures method. More...
 
Luciad.Layers.Features.FeatureLayer.Builder QueryConfiguration (Luciad.Layers.Features.FeatureQueryConfiguration configuration)
 Sets the query configuration to use. More...
 
Luciad.Layers.Features.FeatureLayer.Builder Title (string title)
 Sets the title to use for the layer. More...
 
Luciad.Layers.Features.FeatureLayer.Builder Visible (bool visible)
 Sets whether the layer should be visible initially. More...
 

Detailed Description

Builder for the FeatureLayer class.

Constructor & Destructor Documentation

◆ Builder()

Luciad.Layers.Features.FeatureLayer.Builder.Builder ( Luciad.Layers.Features.FeatureLayer.Builder  other)
inline

Member Function Documentation

◆ Build()

Luciad.Layers.Features.FeatureLayer Luciad.Layers.Features.FeatureLayer.Builder.Build ( )
inline

Returns a new layer, based on the properties set on this builder.

Returns
a new layer, based on the properties set on this builder.
Exceptions
System.InvalidOperationExceptionIf not all mandatory parameters are set. If no painter is set and the feature model contains at least one feature data type without a geometry.

◆ DensitySettings()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.DensitySettings ( Luciad.Layers.Features.DensitySettings  densitySettings)
inline

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.

Parameters
densitySettingsthe density painting settings. null by default.
Returns
this builder.
Since
2024.1
See also
DensitySettings

◆ Dispose()

void Luciad.Layers.Features.FeatureLayer.Builder.Dispose ( )
inline

◆ Editable()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.Editable ( bool  editable)
inline

Sets whether the layer should be editable initially.

When an edit configuration is set, the default is true. When no edit configuration is set, the default is false.

When this method is called with true as parameter, and no edit configuration is edit set, a default edit configuration will be used. This default configuration enables editing for all features, using a default handles provider.

Refer to EditConfiguration for enabling editing capabilities.

Parameters
editablethe edit capability.
Returns
this builder.
Since
2020.1
See also
FeatureLayer.setEditable for more info.

◆ EditConfiguration()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.EditConfiguration ( Luciad.Edit.Features.IFeatureEditConfiguration  editConfiguration)
inline

Enables editing capabilities using the given IFeatureEditConfiguration.

If not set, editing will not be supported, and FeatureLayer.EditConfiguration will return null. If set, editing will be enabled by default.

Additional configuration for editing can be done using:

Parameters
editConfigurationthe feature edit configuration used to edit the feature model. Cannot be null.
Returns
this builder.
Exceptions
System.ArgumentNullExceptionwhen the given edit configuration is null
Since
2020.1

◆ EditCreateGeometryProvider()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.EditCreateGeometryProvider ( Luciad.Models.Features.IFeatureGeometryProvider  geometryProvider)
inline

Provides the edit/create geometry provider for a Feature.

This geometry provider determines using which geometry a Feature can be edited or created, and how to apply this geometry back on the Feature. This implementation is for example used by FeatureHandlesProvider, and by Creator.

Calling this method is optional. When this method is not called, a default implementation will be used. This default implementation assumes that

Parameters
geometryProviderthe edit geometry provider for the current Feature. Cannot be null.
Returns
this
Exceptions
System.ArgumentNullExceptionwhen the given geometry provider is null
Since
2020.1

◆ Labeled()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.Labeled ( bool  labeled)
inline

Sets whether the layer should display labels initially.

The default is true.

Parameters
labeledwhether the layer should display labels initially.
Returns
this builder.
Since
2020.2
See also
FeatureLayer.setLabeled

◆ LoadingStrategy()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.LoadingStrategy ( Luciad.Layers.Features.FeatureLayerLoadingStrategy  loadingStrategy)
inline

Sets the FeatureLayerLoadingStrategy to use.

This method is optional. If a loading strategy is not explicitly configured, the LoadSpatially strategy is used. It tries to use the LoadSpatially strategy first. If that strategy is not supported for the layer's model, the LoadEverything strategy is used as fallback.

Parameters
loadingStrategythe loading strategy to use.
Returns
this builder
Since
2023.0.02

◆ Model()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.Model ( Luciad.Models.Features.IFeatureModel  model)
inline

Sets the feature model of the layer.

Calling this function is mandatory.

Parameters
modelthe feature model of the layer. Cannot be null.
Returns
this builder.
Exceptions
System.ArgumentNullExceptionwhen the given model is null.

◆ Painter()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.Painter ( Luciad.Layers.Features.IFeaturePainter  featurePainter)
inline

Sets the IFeaturePainter to use.

If not set, a default painter will be used. The default painter relies on the feature model having all of its feature data types containing a geometry annotation.

Parameters
featurePainterthe feature painter used to paint the feature model. Cannot be null.
Returns
this builder.
Exceptions
System.ArgumentNullExceptionwhen the given feature painter is null

◆ Queryable()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.Queryable ( bool  queryable)
inline

Sets whether the features in this layer can be returned in the Map.QueryFeatures method.

The default is true.

Parameters
queryablewhether the features in this layer can be returned in the Map.QueryFeatures method.
Returns
this builder
Since
2023.1
See also
FeatureLayer.setQueryable

◆ QueryConfiguration()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.QueryConfiguration ( Luciad.Layers.Features.FeatureQueryConfiguration  configuration)
inline

Sets the query configuration to use.

The query configuration determines which features to load based on the current map's scale. If not set, a default configuration will be used that always loads all features.

Parameters
configurationthe query configuration. Cannot be null.
Returns
this builder
Exceptions
System.ArgumentNullExceptionwhen the given query configuration is null

◆ Title()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.Title ( string  title)
inline

Sets the title to use for the layer.

If not set, the title from the ModelMetadata is used.

Parameters
titlethe title for the layer.
Returns
this builder.

◆ Visible()

Luciad.Layers.Features.FeatureLayer.Builder Luciad.Layers.Features.FeatureLayer.Builder.Visible ( bool  visible)
inline

Sets whether the layer should be visible initially.

Default is true.

Parameters
visiblethe visibility.
Returns
this builder.