ImageTiledLayer constructor

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

Creates an image tiled layer from the given tile metadata and the full extent.

Parameters:

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

Implementation

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