DimensionLayer.withUri constructor
- Uri uri
Creates a new dimension layer from a feature service URI.
If the specified URI is not a valid Feature Service endpoint, then it will fail to load.
Parameters:
uri
— The URI to the feature service layer.
Implementation
factory DimensionLayer.withUri(
Uri uri,
) {
_initializeArcGISEnvironmentIfNeeded();
final coreURI = _CString(uri.toString());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_DimensionLayer_createWithURI(
coreURI.bytes,
errorHandler,
);
});
return Layer._instanceCache.instanceWith(handle);
}