QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
Static Public Member Functions | List of all members
QgsMapCanvasUtils Class Reference

Utility functions for working with QgsMapCanvas widgets. More...

#include <qgsmapcanvasutils.h>

Static Public Member Functions

static long flashMatchingFeatures (QgsMapCanvas *canvas, QgsVectorLayer *layer, const QString &filter)
 Flashes features from the specified layer which match the given filter expression string with a map canvas. More...
 
static long zoomToMatchingFeatures (QgsMapCanvas *canvas, QgsVectorLayer *layer, const QString &filter)
 Zooms a map canvas to features from the specified layer which match the given filter expression string. More...
 

Detailed Description

Utility functions for working with QgsMapCanvas widgets.

Since
QGIS 3.14

Definition at line 31 of file qgsmapcanvasutils.h.

Member Function Documentation

◆ flashMatchingFeatures()

long QgsMapCanvasUtils::flashMatchingFeatures ( QgsMapCanvas canvas,
QgsVectorLayer layer,
const QString &  filter 
)
static

Flashes features from the specified layer which match the given filter expression string with a map canvas.

The total count of matching features will be returned.

Definition at line 54 of file qgsmapcanvasutils.cpp.

◆ zoomToMatchingFeatures()

long QgsMapCanvasUtils::zoomToMatchingFeatures ( QgsMapCanvas canvas,
QgsVectorLayer layer,
const QString &  filter 
)
static

Zooms a map canvas to features from the specified layer which match the given filter expression string.

The total count of matching features will be returned.

Definition at line 21 of file qgsmapcanvasutils.cpp.


The documentation for this class was generated from the following files: