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¶
Base classes¶
Raster marker symbol layer class. |
|
Abstract base class for marker symbol layers. |
|
Abstract base class for symbol layers. |
Methods
Returns the marker frame rate in frame per second. |
|
Sets the marker frame rate in frame per second. |
Static Methods
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
- Return type:
float