16 #ifndef QGSVECTORTILELAYER_H 
   17 #define QGSVECTORTILELAYER_H 
   19 #include "qgis_core.h" 
   89     explicit QgsVectorTileLayer( 
const QString &path = QString(), 
const QString &baseName = QString() );
 
   93     SIP_PYOBJECT __repr__();
 
   95     QString 
str = QStringLiteral( 
"<QgsVectorTileLayer: '%1'>" ).arg( sipCpp->name() );
 
   96     sipRes = PyUnicode_FromString( 
str.toUtf8().constData() );
 
  108     bool writeXml( QDomNode &layerNode, QDomDocument &doc, const 
QgsReadWriteContext &context ) const override;
 
  110     bool readSymbology( const QDomNode &node, QString &errorMessage,
 
  113     bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const 
QgsReadWriteContext &context,
 
  114                          StyleCategories categories = AllStyleCategories ) const override;
 
  117     QString loadDefaultStyle( 
bool &resultFlag 
SIP_OUT ) override;
 
  130     bool loadDefaultStyle( QString &error, QStringList &warnings ) 
SIP_SKIP;
 
  132     QString loadDefaultMetadata( 
bool &resultFlag 
SIP_OUT ) override;
 
  135     QString decodedSource( const QString &source, const QString &provider, const 
QgsReadWriteContext &context ) const 
FINAL;
 
  136     QString htmlMetadata() const override;
 
  141     QString sourceType()
 const { 
return mSourceType; }
 
  181     bool loadDataSource();
 
  189     int mSourceMinZoom = -1;
 
  191     int mSourceMaxZoom = -1;
 
  194     std::unique_ptr<QgsVectorTileRenderer> mRenderer;
 
  196     std::unique_ptr<QgsVectorTileLabeling> mLabeling;
 
  198     bool mTileBorderRendering = 
false;
 
  200     QVariantMap mArcgisLayerConfiguration;
 
  202     bool setupArcgisVectorTileServiceConnection( 
const QString &uri, 
const QgsDataSourceUri &dataSourceUri );
 
Contains information about the context in which a coordinate transform is executed.
Class for storing the component parts of a RDBMS data source URI (e.g.
Base class for utility classes that encapsulate information necessary for rendering of map layers.
Base class for all map layer types.
virtual QgsMapLayer * clone() const =0
Returns a new instance equivalent to this one except for the id which is still unique.
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.
Stores coordinates of a tile in a tile matrix set.
Base class for labeling configuration classes for vector tile layers.
Implements a map layer that is dedicated to rendering of vector tiles.
void setTileBorderRenderingEnabled(bool enabled)
Sets whether to render also borders of tiles (useful for debugging)
~QgsVectorTileLayer() override
int sourceMinZoom() const
Returns minimum zoom level at which source has any valid tiles (negative = unconstrained)
bool isTileBorderRenderingEnabled() const
Returns whether to render also borders of tiles (useful for debugging)
int sourceMaxZoom() const
Returns maximum zoom level at which source has any valid tiles (negative = unconstrained)
QString sourcePath() const
Returns URL/path of the data source (syntax different to each data source type)
Abstract base class for all vector tile renderer implementations.