Class: QgsAnimatedMarkerSymbolLayer

Animated marker symbol layer class.

The QgsAnimatedMarkerSymbolLayer class renders frames from an animated raster image source (e.g. an animated GIF) during temporal animations or map exports.

Added in version 3.26.

Class Hierarchy

Inheritance diagram of qgis.core.QgsAnimatedMarkerSymbolLayer

Base classes

QgsRasterMarkerSymbolLayer

Raster marker symbol layer class.

QgsMarkerSymbolLayer

Abstract base class for marker symbol layers.

QgsSymbolLayer

Abstract base class for symbol layers.

Methods

frameRate

Returns the marker frame rate in frame per second.

setFrameRate

Sets the marker frame rate in frame per second.

Static Methods

create

Creates an animated marker symbol layer from a string map of properties.

class qgis.core.QgsAnimatedMarkerSymbolLayer[source]

Bases: QgsRasterMarkerSymbolLayer

__init__(path: str | None = '', size: float = DEFAULT_RASTERMARKER_SIZE, angle: float = DEFAULT_RASTERMARKER_ANGLE)

Constructor for animated marker symbol layer using the specified source image path.

Parameters:
  • path (Optional[str] = '')

  • size (float = DEFAULT_RASTERMARKER_SIZE)

  • angle (float = DEFAULT_RASTERMARKER_ANGLE)

static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None[source]

Creates an animated marker symbol layer from a string map of properties.

Parameters:

properties (Dict[str, Any] = {})

Return type:

Optional[QgsSymbolLayer]

frameRate(self) float[source]

Returns the marker frame rate in frame per second.

See also

setFrameRate()

Return type:

float

setFrameRate(self, rate: float)[source]

Sets the marker frame rate in frame per second.

See also

frameRate()

Parameters:

rate (float)