setRequest method

void setRequest({
  1. required TileKey tileKey,
  2. required Uri uri,
  3. required Map<String, String> parameters,
})

Sends the request for the tile.

The parameters will be added to the URI for a GET and will be used for a POST. A request will be generated for this.

Parameters:

  • tileKey — The tile key (levelID, column, row).
  • uri — The base URI for the request.
  • parameters — The URI parameters for the request.

Implementation

void setRequest({
  required TileKey tileKey,
  required Uri uri,
  required Map<String, String> parameters,
}) {
  final coreURI = _CString(uri.toString());
  final coreParameters = parameters.toDictionary(
    keyType: _ElementType.string,
    valueType: _ElementType.string,
  );
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_ServiceImageTiledLayer_setRequest(
      _handle,
      tileKey._handle,
      coreURI.bytes,
      coreParameters._handle,
      errorHandler,
    );
  });
}