Class DimensionLayer
A layer that can visualize dimension features data.
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class DimensionLayer : Layer, INotifyPropertyChanged, ILoadable, ILayerContent
Remarks
Dimension features are a special kind of annotation feature for showing specific lengths or distances on a map. A dimension may indicate the length of a side of a building or land parcel, or the distance between two features, such as a fire hydrant and the corner of a building. They are described in detail in "Dimension". Each Dimension feature has specific text and specific locations for its schematic lines and arrows. Dimension features are not linked to other point, line or polygon features, even if the dimension measurement was created to refer to one or more features.
You can construct a dimension layer using a feature table containing dimension features:
- An online Service
- An offline Geodatabase
Dimension layers can be taken offline from a feature service hosted on ArcGIS Enterprise 10.9 or later, using the Geodatabase
Dimension respects the reference scale defined by the map, so dimension will always be presented to the user at the correct size and position, as defined by the dimension author.
You cannot add, change, or delete a dimension feature. Any attempt produces a "Geodatabase table not editable" (3016) error.
The Feature
You do not have access to, and cannot change, the renderer or the styles used for rendering dimensions.
Constructors
Name | Description |
---|---|
Dimension |
Initializes a new instance of the Dimension |
Dimension |
Initializes a new instance of the Dimension |
Dimension |
Initializes a new instance of the Dimension |
Properties
Name | Description |
---|---|
Barrier |
Gets or sets the weight of dimension features when considered as barriers to labeling. |
Definition |
Gets or sets an expression which is a SQL statement WHERE clause to specify the subset of features to be displayed. |
Feature |
Gets the feature table associated with this layer. |
Layer |
Gets the layer ID that defines the layer within the feature service portal item. |
Reference |
Gets the reference scale for the layer. |
Source | Gets the URI of a feature service to define the layer. |
Methods
Name | Description |
---|---|
Clear |
Updates any selected features in the layer back to the un-selected state. |
Get |
Returns a list of the currently selected features. |
Reset |
Resets the visibility of the layer's features back to the original visibility when loaded from the data source. |
Select |
Selects the given feature and adds it to the current list of selected features. |
SelectFeatures(IEnumerable<Feature>) | Selects the features in the list and adds them to the current list of selected features. |
Select |
Selects the features that match the criteria in the Query |
SetFeaturesVisible(IEnumerable<Feature>, Boolean) | Sets the visibility of the given features. |
Set |
Sets the visibility of the given feature. |
Unselect |
Unselects the given feature and removes it from the current list of selected features. |
UnselectFeatures(IEnumerable<Feature>) | Unselects the features in the given list and removes them from the current list of selected features. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.13 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.13 - 200.6 |
Xamarin.Android | 100.13 - 100.15 |
Xamarin.iOS | 100.13 - 100.15 |
UWP | 100.13 - 200.6 |