AnnotationLayer

constructor(featureTable: ArcGISFeatureTable)

Creates an annotation layer from a feature table containing annotation features. If the feature table does not contain annotation data then the AnnotationLayer will fail to load. com.arcgismaps.data.ArcGISFeatureTable.layerInfo and com.arcgismaps.arcgisservices.ArcGISFeatureLayerInfo.featureServiceType can be checked, to verify the feature type, before attempting to create a Layer.

Since

200.1.0

Parameters

featureTable

The feature table, containing annotation features, used as the source of the annotation layer.


constructor(item: Item, layerId: Long)

Creates a new annotation layer object from a feature service portal item.

Since

200.1.0

Parameters

item
layerId

The layer ID for which to create the layer.

See also


constructor(uri: String)

Creates a new annotation layer from a feature service URI. If the specified URI is not a valid ArcGIS feature service endpoint, then it will fail to load.

Since

200.1.0

Parameters

uri

The URI to the feature service layer.