The label Webmap expression expects to hold a legal, Webmap script and to be read and evaluated by a Webmap expression interpreter. An example expression that combines text with a field value is: c {State {State_Name}}. Note that quotes are not needed around the literal text. More...
Header: | #include <WebmapLabelExpression.h> |
Since: | Esri::ArcGISRuntime 100.11 |
Inherits: | Esri::ArcGISRuntime::LabelExpression |
Public Functions
WebmapLabelExpression(QObject *parent = nullptr) | |
WebmapLabelExpression(const QString &webmapExpression, QObject *parent = nullptr) | |
virtual | ~WebmapLabelExpression() override |
Detailed Description
Note: If expression using attributes which don't exist then no label will be produced. This is distinct from the attribute existing but having a null or empty value, which can form part of the produced text label.
Member Function Documentation
[explicit]
WebmapLabelExpression::WebmapLabelExpression (QObject *parent = nullptr)
Creates a label Webmap expression with an empty expression script.
- parent - The optional parent QObject.
An empty script is a legal Webmap expression that will evaluate to an empty string.
[explicit]
WebmapLabelExpression::WebmapLabelExpression (const QString &webmapExpression , QObject *parent = nullptr)
Creates a label Webmap expression with a specific Webmap script.
- webmapExpression - The Webmap expression script string.
- parent - The optional parent QObject.
The expression is expected to be a complete, self-contained Webmap expression.
[override virtual]
WebmapLabelExpression::~WebmapLabelExpression ()
Destructor.