DimensionLayer.withFeatureTable constructor
- ArcGISFeatureTable featureTable
Creates a dimension layer from a feature table containing dimension features.
If the feature table does not contain dimension data then the DimensionLayer 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 dimension features, used as the source of the dimension layer.
Implementation
factory DimensionLayer.withFeatureTable(
ArcGISFeatureTable featureTable,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_DimensionLayer_createWithFeatureTable(
featureTable._handle,
errorHandler,
);
});
return Layer._instanceCache.instanceWith(handle);
}