AnnotationLayer.withUri constructor
- Uri uri
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.
Parameters:
uri
— The URI to the feature service layer.
Implementation
factory AnnotationLayer.withUri(
Uri uri,
) {
_initializeArcGISEnvironmentIfNeeded();
final coreURI = _CString(uri.toString());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_AnnotationLayer_createWithURI(
coreURI.bytes,
errorHandler,
);
});
return Layer._instanceCache.instanceWith(handle);
}