Constructor AnnotationLayer
AnnotationLayer(ArcGISFeatureTable)
Initializes a new instance of the AnnotationLayer class from a feature table containing annotation features.
Declaration
public AnnotationLayer(ArcGISFeatureTable featureTable)
Parameters
Type | Name | Description |
---|---|---|
ArcGISFeatureTable | featureTable | The feature table, containing annotation features, used as the source of the annotation layer. |
Remarks
If the feature table does not contain annotation data then the AnnotationLayer will fail to load. ServiceSourceType of the LayerInfo can be checked to verify the feature type, before attempting to create an AnnotationLayer.
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.6 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.6 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.6 - 100.15 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 100.15 |
AnnotationLayer(Item, Int32)
Initializes a new instance of the AnnotationLayer class from a feature service portal item.
Declaration
public AnnotationLayer(Item item, int layerId)
Parameters
Type | Name | Description |
---|---|---|
Item | item | A feature service item. |
Int32 | layerId | The layer ID for which to create the layer. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.5 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 100.15 |
AnnotationLayer(Uri)
Initializes a new instance of the AnnotationLayer class from a feature service URI.
Declaration
public AnnotationLayer(Uri source)
Parameters
Type | Name | Description |
---|---|---|
Uri | source | The URI to the feature service layer. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.5 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 100.14 |
Relevant samples
Display annotation: Display annotation from a feature service URL.