preferredImageFormat property

MapServiceImageFormat preferredImageFormat

The preferred image format of this WmsLayer.

If a preferred format is not specified prior to loading, then MapServiceImageFormat.png is used.

Implementation

MapServiceImageFormat get preferredImageFormat {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_WMSLayer_getPreferredImageFormat(
      _handle,
      errorHandler,
    );
  });
  return MapServiceImageFormat._fromCoreValue(
    coreValue,
  );
}
void preferredImageFormat=(MapServiceImageFormat value)

Implementation

set preferredImageFormat(MapServiceImageFormat value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_WMSLayer_setPreferredImageFormat(
      _handle,
      value.coreValue,
      errorHandler,
    );
  });
}