|
QGIS API Documentation 3.99.0-Master (f78f5286a64)
|
Encapsulates a MapBox GL style raster source. More...
#include <qgsmapboxglstyleconverter.h>

Public Member Functions | |
| QgsMapBoxGlStyleRasterSource (const QString &name) | |
| Constructor for QgsMapBoxGlStyleRasterSource. | |
| QString | attribution () const |
| Returns the source's attribution text. | |
| int | maximumZoom () const |
| Returns the maximum tile zoom for which tiles are available. | |
| int | minimumZoom () const |
| Returns the minimum tile zoom for which tiles are available. | |
| bool | setFromJson (const QVariantMap &json, QgsMapBoxGlStyleConversionContext *context) override |
| Sets the source's state from a json map. | |
| QStringList | tiles () const |
| Returns the list of tile sources. | |
| int | tileSize () const |
| Returns the associated tile size. | |
| QgsRasterLayer * | toRasterLayer () const |
Returns a new raster layer representing the raster source, or nullptr if the source cannot be represented as a raster layer. | |
| Qgis::MapBoxGlStyleSourceType | type () const override |
| Returns the source type. | |
Public Member Functions inherited from QgsMapBoxGlStyleAbstractSource | |
| QgsMapBoxGlStyleAbstractSource (const QString &name) | |
| Constructor for QgsMapBoxGlStyleAbstractSource. | |
| virtual | ~QgsMapBoxGlStyleAbstractSource () |
| QString | name () const |
| Returns the source's name. | |
Encapsulates a MapBox GL style raster source.
Definition at line 237 of file qgsmapboxglstyleconverter.h.
| QgsMapBoxGlStyleRasterSource::QgsMapBoxGlStyleRasterSource | ( | const QString & | name | ) |
Constructor for QgsMapBoxGlStyleRasterSource.
Definition at line 4183 of file qgsmapboxglstyleconverter.cpp.
|
inline |
Returns the source's attribution text.
Definition at line 252 of file qgsmapboxglstyleconverter.h.
|
inline |
Returns the maximum tile zoom for which tiles are available.
Definition at line 266 of file qgsmapboxglstyleconverter.h.
|
inline |
Returns the minimum tile zoom for which tiles are available.
Definition at line 259 of file qgsmapboxglstyleconverter.h.
|
overridevirtual |
Sets the source's state from a json map.
Implements QgsMapBoxGlStyleAbstractSource.
Definition at line 4194 of file qgsmapboxglstyleconverter.cpp.
|
inline |
Returns the list of tile sources.
Definition at line 276 of file qgsmapboxglstyleconverter.h.
|
inline |
Returns the associated tile size.
Definition at line 271 of file qgsmapboxglstyleconverter.h.
| QgsRasterLayer * QgsMapBoxGlStyleRasterSource::toRasterLayer | ( | ) | const |
Returns a new raster layer representing the raster source, or nullptr if the source cannot be represented as a raster layer.
The caller takes ownership of the returned layer.
Definition at line 4222 of file qgsmapboxglstyleconverter.cpp.
|
overridevirtual |
Returns the source type.
Implements QgsMapBoxGlStyleAbstractSource.
Definition at line 4189 of file qgsmapboxglstyleconverter.cpp.