AnnotationLayer.withFeatureTable constructor
- ArcGISFeatureTable featureTable
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. ArcGISFeatureTable.layerInfo and ArcGISFeatureLayerInfo.serviceType can be checked, to verify the feature type, before attempting to create a Layer.
Parameters:
featureTable
— The feature table, containing annotation features, used as the source of the annotation layer.
Implementation
factory AnnotationLayer.withFeatureTable(
ArcGISFeatureTable featureTable,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_AnnotationLayer_createWithFeatureTable(
featureTable._handle,
errorHandler,
);
});
return Layer._instanceCache.instanceWith(handle);
}