ServiceImageTiledLayer.withInfoFullExtent constructor

ServiceImageTiledLayer.withInfoFullExtent({
  1. required TileInfo tileInfo,
  2. required Envelope fullExtent,
})

Creates a tile service layer object.

Parameters:

  • tileInfo — A tile info object.
  • fullExtent — The full extent of the layer.

Implementation

factory ServiceImageTiledLayer.withInfoFullExtent({
  required TileInfo tileInfo,
  required Envelope fullExtent,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceImageTiledLayer_createWithInfoFullExtent(
      tileInfo._handle,
      fullExtent._handle,
      errorHandler,
    );
  });
  return Layer._instanceCache.instanceWith(handle);
}