GenerateOfflineMapParameters.withAreaOfInterest constructor

GenerateOfflineMapParameters.withAreaOfInterest(
  1. Geometry areaOfInterest, {
  2. double minScale = 0.0,
  3. double maxScale = 0.0,
})

Creates a generate offline map parameters object.

The area of interest must have a spatial reference. If min_scale or max_scale is zero that implies there is no bound on the scale. If both are non-zero, they must both be positive with min_scale greater than max_scale.

Parameters:

  • areaOfInterest — Area of interest.
  • minScale — Min scale.
  • maxScale — Max scale.

Implementation

factory GenerateOfflineMapParameters.withAreaOfInterest(
  Geometry areaOfInterest, {
  double minScale = 0.0,
  double maxScale = 0.0,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_GenerateOfflineMapParameters_createWithAreaOfInterestAndMinScaleAndMaxScale(
      areaOfInterest._handle,
      minScale,
      maxScale,
      errorHandler,
    );
  });
  return GenerateOfflineMapParameters._withHandle(handle);
}