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.

List of all members, including inherited members

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.

Constructor

__init__

Methods

frameRate

Returns the marker frame rate in frame per second.

setFrameRate

Sets the marker frame rate in frame per second.

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsAnimatedMarkerSymbolLayer. See the FAQ for more details.

clone

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 (str|None = '')

  • size (float = DEFAULT_RASTERMARKER_SIZE)

  • angle (float = DEFAULT_RASTERMARKER_ANGLE)

virtual clone(self) → QgsAnimatedMarkerSymbolLayer | None[source]
Return type:

QgsAnimatedMarkerSymbolLayer|None

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

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

Parameters:

properties (dict[str|None, Any] = {})

Return type:

QgsSymbolLayer|None

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)