An individual style layer in a vector tile style. More...
| Header | #include <Vector |
| Since | Esri |
| Inherits | Esri |
Public Functions
| virtual | ~ |
| Esri | filter |
| QString | id() const |
| bool | is |
| bool | is |
| Esri | layout |
| void | reset() |
| void | set |
| QString | source |
| QString | source |
| Esri | type() const |
Detailed Description
Modifications to the style layer, such as changes to the filter expression or visibility, take effect in the rendering as soon as they are made, unless a batch update is in progress on the style.
See also VectorTileStyle.
Member Function Documentation
[override virtual noexcept] VectorTileStyleLayer::~VectorTileStyleLayer ()
Destructor.
Esri::ArcGISRuntime::VectorTileStyleLayerFilterExpression *VectorTileStyleLayer::filterExpression () const
Returns an expression that determines which features in the style layer are rendered.
Create a VectorTileStyleLayerFilterExpression from a JSON string and assign it to this property. A nullptr value indicates that no filter expression is defined. Setting this property to nullptr removes the filter expression.
See also setFilterExpression().
QString VectorTileStyleLayer::id() const
Returns the unique identifier of the style layer.
bool VectorTileStyleLayer::isModified () const
Returns true if the style layer is modified from its original state; false otherwise.
bool VectorTileStyleLayer::isVisibleAtScale (double scale) const
Returns true if the style layer is visible at the specified scale; false otherwise.
- scale - The scale for which to determine visibility.
This method utilizes the layer's minimum and maximum visible scale settings (if defined) to determine if the layer is visible at the specified scale. If VectorTileStyleLayerLayoutProperties::isVisible is false, this also returns false. If the style layer has no minimum or maximum scale defined, this returns the same result as VectorTileStyleLayerLayoutProperties::isVisible. Otherwise, it returns false if the specified scale falls outside of the layer's minimum and maximum visible scale range.
Esri::ArcGISRuntime::VectorTileStyleLayerLayoutProperties *VectorTileStyleLayer::layoutProperties () const
Returns the layout properties of the style layer.
void VectorTileStyleLayer::reset()
Resets this style layer to its original state.
void VectorTileStyleLayer::setFilterExpression (Esri::ArcGISRuntime::VectorTileStyleLayerFilterExpression *filterExpression )
Sets the filterExpression to filterExpression.
See also filterExpression.
QString VectorTileStyleLayer::sourceLayerName () const
Returns the name of the source layer of the style layer.
This is the specific layer within a tile from which this style layer reads its data.
QString VectorTileStyleLayer::sourceName () const
Returns the name of the source of the style layer.
This is the source from which tile data is obtained.
Esri::ArcGISRuntime::VectorTileStyleLayerType VectorTileStyleLayer::type() const
Returns the VectorTileStyleLayerType of the style layer.