iconScale property

NSExpression get iconScale

Scales the original size of the icon by the provided factor. The new point size of the image will be the original point size multiplied by iconScale. 1 is the original size; 3 triples the size of the image.

This property is measured in factor of the original icon sizes.

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

This property is only applied to the style if iconImageName is non-nil. Otherwise, it is ignored.

This attribute corresponds to the icon-size layout property in the MapLibre Style Spec.

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

Constant numeric values no less than 0 Predefined functions, including mathematical and string operators Conditional expressions Variable assignments and references to assigned variables Interpolation and step functions applied to the $zoomLevel variable and/or feature attributes

Implementation

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

Scales the original size of the icon by the provided factor. The new point size of the image will be the original point size multiplied by iconScale. 1 is the original size; 3 triples the size of the image.

This property is measured in factor of the original icon sizes.

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

This property is only applied to the style if iconImageName is non-nil. Otherwise, it is ignored.

This attribute corresponds to the icon-size layout property in the MapLibre Style Spec.

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

Constant numeric values no less than 0 Predefined functions, including mathematical and string operators Conditional expressions Variable assignments and references to assigned variables Interpolation and step functions applied to the $zoomLevel variable and/or feature attributes

Implementation

set iconScale(NSExpression value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setIconScale_, value.ref.pointer);

}