QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
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 227 of file qgsmapboxglstyleconverter.h.
QgsMapBoxGlStyleRasterSource::QgsMapBoxGlStyleRasterSource | ( | const QString & | name | ) |
Constructor for QgsMapBoxGlStyleRasterSource.
Definition at line 4116 of file qgsmapboxglstyleconverter.cpp.
|
inline |
Returns the source's attribution text.
Definition at line 242 of file qgsmapboxglstyleconverter.h.
|
inline |
Returns the maximum tile zoom for which tiles are available.
Definition at line 256 of file qgsmapboxglstyleconverter.h.
|
inline |
Returns the minimum tile zoom for which tiles are available.
Definition at line 249 of file qgsmapboxglstyleconverter.h.
|
overridevirtual |
Sets the source's state from a json map.
Implements QgsMapBoxGlStyleAbstractSource.
Definition at line 4127 of file qgsmapboxglstyleconverter.cpp.
|
inline |
Returns the list of tile sources.
Definition at line 266 of file qgsmapboxglstyleconverter.h.
|
inline |
Returns the associated tile size.
Definition at line 261 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 4155 of file qgsmapboxglstyleconverter.cpp.
|
overridevirtual |
Returns the source type.
Implements QgsMapBoxGlStyleAbstractSource.
Definition at line 4122 of file qgsmapboxglstyleconverter.cpp.