16#ifndef QGSVECTORTILELAYER_H
17#define QGSVECTORTILELAYER_H
106 : transformContext( transformContext )
118 SIP_PYOBJECT __repr__();
120 QString
str = QStringLiteral(
"<QgsVectorTileLayer: '%1'>" ).arg( sipCpp->name() );
121 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
132 bool writeXml( QDomNode &layerNode, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
133 bool readSymbology( const QDomNode &node, QString &errorMessage,
135 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context,
138 QString loadDefaultStyle(
bool &resultFlag
SIP_OUT ) override;
139 Qgis::MapLayerProperties properties() const override;
152 bool loadDefaultStyle( QString &error, QStringList &warnings )
SIP_SKIP;
170 QString loadDefaultMetadata(
bool &resultFlag
SIP_OUT ) override;
173 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const
FINAL;
174 QString htmlMetadata() const override;
188 QString sourcePath()
const;
227 bool labelsEnabled()
const;
239 void setLabelsEnabled(
bool enabled );
255 QList< QgsFeature > selectedFeatures()
const;
266 int selectedFeatureCount()
const;
294 void removeSelection();
306 bool loadDataSource();
315 std::unique_ptr<QgsVectorTileRenderer> mRenderer;
317 std::unique_ptr<QgsVectorTileLabeling> mLabeling;
319 bool mLabelsEnabled =
true;
321 bool mTileBorderRendering =
false;
325 std::unique_ptr< QgsDataProvider > mDataProvider;
327 QHash< QgsFeatureId, QgsFeature > mSelectedFeatures;
329 void setDataSourcePrivate(
const QString &dataSource,
const QString &baseName,
const QString &provider,
332 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.
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
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.
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 from one or more sources 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.