16#ifndef QGSVECTORTILELAYER_H
17#define QGSVECTORTILELAYER_H
105 : transformContext( transformContext )
117 SIP_PYOBJECT __repr__();
119 QString
str = QStringLiteral(
"<QgsVectorTileLayer: '%1'>" ).arg( sipCpp->name() );
120 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
131 bool writeXml( QDomNode &layerNode, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
132 bool readSymbology( const QDomNode &node, QString &errorMessage,
134 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context,
137 QString loadDefaultStyle(
bool &resultFlag
SIP_OUT ) override;
138 Qgis::MapLayerProperties properties() const override;
151 bool loadDefaultStyle( QString &error, QStringList &warnings )
SIP_SKIP;
169 QString loadDefaultMetadata(
bool &resultFlag
SIP_OUT ) override;
172 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const
FINAL;
173 QString htmlMetadata() const override;
187 QString sourcePath()
const;
226 bool labelsEnabled()
const;
238 void setLabelsEnabled(
bool enabled );
254 QList< QgsFeature > selectedFeatures()
const;
265 int selectedFeatureCount()
const;
293 void removeSelection();
305 bool loadDataSource();
314 std::unique_ptr<QgsVectorTileRenderer> mRenderer;
316 std::unique_ptr<QgsVectorTileLabeling> mLabeling;
318 bool mLabelsEnabled =
true;
320 bool mTileBorderRendering =
false;
324 std::unique_ptr< QgsDataProvider > mDataProvider;
326 QHash< QgsFeatureId, QgsFeature > mSelectedFeatures;
328 void setDataSourcePrivate(
const QString &dataSource,
const QString &baseName,
const QString &provider,
331 bool loadDefaultStyleAndSubLayersPrivate( QString &error, QStringList &warnings, QList< QgsMapLayer * > *subLayers );
The Qgis class provides global constants for use throughout the application.
QFlags< SelectionFlag > SelectionFlags
Flags which control feature selection behavior.
SelectGeometryRelationship
Geometry relationship test to apply for selecting features.
@ Intersect
Select where features intersect the reference geometry.
SelectBehavior
Specifies how a selection should be applied.
@ SetSelection
Set selection, removing any existing selection.
Contains information about the context in which a coordinate transform is executed.
Abstract base class for spatial data provider implementations.
QFlags< ReadFlag > ReadFlags
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
A geometry is the spatial representation of a feature.
Base class for utility classes that encapsulate information necessary for rendering of map layers.
Base class for all map layer types.
QFlags< StyleCategory > StyleCategories
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.
Encapsulates the context of a layer selection 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)
QString sourceType() const
Returns type of the data source.
~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)
void selectionChanged()
Emitted whenever the selected features in the layer are changed.
Encapsulates properties of a vector tile matrix set, including tile origins and scaling information.
Keeps track of raw tile data that need to be decoded.
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.