rasterResamplingMode property

NSExpression get rasterResamplingMode

The resampling/interpolation method to use for overscaling, also known as texture magnification filter

The default value of this property is an expression that evaluates to linear. Set this property to nil to reset it to the default value.

This attribute corresponds to the raster-resampling layout property in the MapLibre Style Spec.

You can set this property to an expression containing any of the following:

Constant MLNRasterResamplingMode values Any of the following constant string values: linear: (Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled nearest: Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled Predefined functions, including mathematical and string operators Conditional expressions Variable assignments and references to assigned variables Step functions applied to the $zoomLevel variable

This property does not support applying interpolation functions to the $zoomLevel variable or applying interpolation or step functions to feature attributes.

Implementation

NSExpression get rasterResamplingMode {
  final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_rasterResamplingMode);
  return NSExpression.castFromPointer(_ret, retain: true, release: true);
}
set rasterResamplingMode (NSExpression value)

The resampling/interpolation method to use for overscaling, also known as texture magnification filter

The default value of this property is an expression that evaluates to linear. Set this property to nil to reset it to the default value.

This attribute corresponds to the raster-resampling layout property in the MapLibre Style Spec.

You can set this property to an expression containing any of the following:

Constant MLNRasterResamplingMode values Any of the following constant string values: linear: (Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled nearest: Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled Predefined functions, including mathematical and string operators Conditional expressions Variable assignments and references to assigned variables Step functions applied to the $zoomLevel variable

This property does not support applying interpolation functions to the $zoomLevel variable or applying interpolation or step functions to feature attributes.

Implementation

set rasterResamplingMode(NSExpression value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setRasterResamplingMode_, value.ref.pointer);

}