areaOfInterest property

Geometry? areaOfInterest

The area of interest for the offline map. This is used for the extent of offline tile caches, geodatabases and the offline map's GeoModel.initialViewpoint property.

The supported geometry types for the area of interest are Envelope and Polygon. The area of interest must have a spatial reference. Where a Polygon is supplied, features and tiles will be filtered according to the polygon geometry, which can help reduce the size of the resulting offline map. Note that the filtered set of tiles may vary, depending on the underlying service.

Implementation

Geometry? get areaOfInterest {
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GenerateOfflineMapParameters_getAreaOfInterest(
        _handle, errorHandler);
  });
  return Geometry._fromHandle(objectHandle);
}
void areaOfInterest=(Geometry? value)

Implementation

set areaOfInterest(Geometry? value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_GenerateOfflineMapParameters_setAreaOfInterest(
        _handle, value?._handle ?? ffi.nullptr, errorHandler);
  });
}