ArcGISMapImageSublayer constructor
- required int id,
- SublayerSource? source,
Creates an ArcGIS map image sublayer with the specified sublayer id and a source.
Only map services that support dynamic layers will be able to manage
sublayers with sublayer sources. The ArcGIS MapServer must have Supports Dynamic Layers
equal to true in the ArcGIS REST Services Directory. For
sublayer sources other than rasters, you must set an
ArcGISMapImageSublayer.renderer.
Parameters:
id
— The sublayer id.source
— The sublayer source.
Implementation
factory ArcGISMapImageSublayer({
required int id,
SublayerSource? source,
}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ArcGISMapImageSublayer_createCombined(
id,
source?._handle ?? ffi.nullptr,
errorHandler,
);
});
final ArcGISMapImageSublayer object =
ArcGISSublayer._instanceCache.instanceWith(handle);
object._source.cache(source);
return object;
}