16 #ifndef QGSVECTORTILELAYER_H
17 #define QGSVECTORTILELAYER_H
19 #include "qgis_core.h"
102 : transformContext( transformContext )
114 SIP_PYOBJECT __repr__();
116 QString
str = QStringLiteral(
"<QgsVectorTileLayer: '%1'>" ).arg( sipCpp->name() );
117 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
128 bool writeXml( QDomNode &layerNode, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
129 bool readSymbology( const QDomNode &node, QString &errorMessage,
131 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context,
132 StyleCategories categories = AllStyleCategories ) const override;
134 QString loadDefaultStyle(
bool &resultFlag
SIP_OUT ) override;
147 bool loadDefaultStyle( QString &error, QStringList &warnings )
SIP_SKIP;
149 QString loadDefaultMetadata(
bool &resultFlag
SIP_OUT ) override;
152 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const
FINAL;
153 QString htmlMetadata() const override;
158 QString sourceType()
const {
return mSourceType; }
198 bool loadDataSource();
206 int mSourceMinZoom = -1;
208 int mSourceMaxZoom = -1;
211 std::unique_ptr<QgsVectorTileRenderer> mRenderer;
213 std::unique_ptr<QgsVectorTileLabeling> mLabeling;
215 bool mTileBorderRendering =
false;
217 QVariantMap mArcgisLayerConfiguration;
221 std::unique_ptr< QgsDataProvider > mDataProvider;
223 bool setupArcgisVectorTileServiceConnection(
const QString &uri,
const QgsDataSourceUri &dataSourceUri );
225 void setDataSourcePrivate(
const QString &dataSource,
const QString &baseName,
const QString &provider,
244 QgsDataProvider::ReadFlags flags );
246 QString
name()
const override;
This class represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Abstract base class for spatial data provider implementations.
virtual QString name() const =0
Returns a provider name.
virtual QgsCoordinateReferenceSystem crs() const =0
Returns the coordinate system for the data source.
virtual bool isValid() const =0
Returns true if this is a valid layer.
virtual QString description() const =0
Returns description.
virtual QgsRectangle extent() const =0
Returns the extent of the layer.
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.
A rectangle specified with double values.
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.
Setting options for creating vector data providers.
Setting options for loading vector tile layers.
LayerOptions(const QgsCoordinateTransformContext &transformContext=QgsCoordinateTransformContext())
Constructor for LayerOptions with optional transformContext.
QgsCoordinateTransformContext transformContext
Coordinate transform context.