QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
Encapsulates a MapBox GL style raster source. More...
#include <qgsmapboxglstyleconverter.h>
Public Member Functions | |
QgsMapBoxGlStyleRasterSource (const QString &name) | |
Constructor for QgsMapBoxGlStyleRasterSource. More... | |
QString | attribution () const |
Returns the source's attribution text. More... | |
int | maximumZoom () const |
Returns the maximum tile zoom for which tiles are available. More... | |
int | minimumZoom () const |
Returns the minimum tile zoom for which tiles are available. More... | |
bool | setFromJson (const QVariantMap &json, QgsMapBoxGlStyleConversionContext *context) override |
Sets the source's state from a json map. More... | |
QStringList | tiles () const |
Returns the list of tile sources. More... | |
int | tileSize () const |
Returns the associated tile size. More... | |
QgsRasterLayer * | toRasterLayer () const |
Returns a new raster layer representing the raster source, or nullptr if the source cannot be represented as a raster layer. More... | |
Qgis::MapBoxGlStyleSourceType | type () const override |
Returns the source type. More... | |
Public Member Functions inherited from QgsMapBoxGlStyleAbstractSource | |
QgsMapBoxGlStyleAbstractSource (const QString &name) | |
Constructor for QgsMapBoxGlStyleAbstractSource. More... | |
virtual | ~QgsMapBoxGlStyleAbstractSource () |
QString | name () const |
Returns the source's name. More... | |
virtual bool | setFromJson (const QVariantMap &json, QgsMapBoxGlStyleConversionContext *context)=0 |
Sets the source's state from a json map. More... | |
virtual Qgis::MapBoxGlStyleSourceType | type () const =0 |
Returns the source type. More... | |
Encapsulates a MapBox GL style raster source.
Definition at line 226 of file qgsmapboxglstyleconverter.h.
QgsMapBoxGlStyleRasterSource::QgsMapBoxGlStyleRasterSource | ( | const QString & | name | ) |
Constructor for QgsMapBoxGlStyleRasterSource.
Definition at line 3618 of file qgsmapboxglstyleconverter.cpp.
|
inline |
Returns the source's attribution text.
Definition at line 241 of file qgsmapboxglstyleconverter.h.
|
inline |
Returns the maximum tile zoom for which tiles are available.
Definition at line 255 of file qgsmapboxglstyleconverter.h.
|
inline |
Returns the minimum tile zoom for which tiles are available.
Definition at line 248 of file qgsmapboxglstyleconverter.h.
|
overridevirtual |
Sets the source's state from a json map.
Implements QgsMapBoxGlStyleAbstractSource.
Definition at line 3629 of file qgsmapboxglstyleconverter.cpp.
|
inline |
Returns the list of tile sources.
Definition at line 265 of file qgsmapboxglstyleconverter.h.
|
inline |
Returns the associated tile size.
Definition at line 260 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 3657 of file qgsmapboxglstyleconverter.cpp.
|
overridevirtual |
Returns the source type.
Implements QgsMapBoxGlStyleAbstractSource.
Definition at line 3624 of file qgsmapboxglstyleconverter.cpp.