AbstractStaticDEFAULT_StaticDEFAULT_StaticFillStaticlineTable used to define line symbology to use when drawing lineString and polygon perimeters
StaticprocessTable of function to process the style settings based on the feature geometry and the kind of style settings.
StaticanalyzeAnalyse the filter and split it in syntaxique nodes. If a problem is detected, an error object is thrown with an explanatory message.
Node array to analyse.
The new node array with all nodes classified.
Staticbase64Decodes a base64-encoded SVG string and replaces parameterized placeholders
(e.g., param(fill) or param(outline)) with actual values provided
as query parameters appended to the base64 string.
This is particularly useful for decoding and normalizing SVG symbols
exported from QGIS, which may include dynamic styling parameters such as
fill, stroke, or outline values.
The method also applies various cleanup steps to improve SVG compatibility:
"stroke=" issues)<title>, <desc>, <defs> tagsThe base64-encoded SVG string, optionally including
query parameters (e.g. "base64:...?...fill=%23ff0000&outline=%23000000").
The decoded, cleaned, and parameter-substituted SVG XML string.
StaticclassifyClassify the remaining nodes to complete the classification. The plus and minus can be a unary or a binary operator. It is only at the end that we can determine there node type. Nodes that start with a number are numbers, otherwise they are variables. If a problem is detected, an error object is thrown with an explanatory message.
Array of keywords to process.
The new keywords array with all nodes classified.
StaticcreateCreate a default style to use with a vector feature that has no style configuration.
Type of geometry (Point, LineString, Polygon).
Label for the style.
The Style configuration created. Undefined if unable to create it.
StaticcreateCreates a filter equation from a filter string.
The filter string to convert.
The filter equation as an array of FilterNodeType.
StaticcreateStaticcreateStaticcreateStaticcreateStaticcreateStaticcreateStaticevaluateEvaluate a simple value expression using feature data. Supports basic arithmetic operations and field references.
Expression string (e.g., "$feature["FIELD_NAME"] + 90")
Feature containing field data
The evaluated result or null if evaluation fails
StaticexecuteExecute an operator using the nodes on the data stack. The filter equation is evaluated using a postfix notation. The result is pushed back on the data stack. If a problem is detected, an error object is thrown with an explanatory message.
Operator to execute.
Data stack to use for the operator execution.
StaticextractExtract the specified keyword and associate a node type to their nodes. In some cases, the extraction uses an optionally regular expression.
Keyword to extract.
OptionalregExp: RegExpAn optional regular expression to use for the extraction.
The new keywords array.
StaticextractExtract the string nodes from the keyword array. This operation is done at the beginning of the classification. This allows to considere Keywords in a string as a normal word. If a problem is detected, an error object is thrown with an explanatory message.
Array of keywords to process.
The new keywords array with all string nodes classified.
StaticfeatureEvaluates whether a feature satisfies a parsed filter equation. The filter equation is expected to be in infix order and is evaluated using a stack-based (shunting-yard–style) algorithm that respects operator precedence and grouping.
The feature whose attributes are used to resolve variable nodes.
OptionalfilterEquation: FilterNodeType[]Parsed filter expression tokens.
True if the feature satisfies the filter, false otherwise.
StaticgetThis method gets the style of the feature using the layer entry config. If the style does not exist for the geometryType, create it using the default style strategy.
Feature that need its style to be defined.
The resolution of the map
The style to use
The style label when one has to be created
OptionalfilterEquation: FilterNodeType[]Filter equation associated to the layer.
OptionalaliasLookup: TypeAliasLookupAn optional lookup table to handle field name aliases.
OptionallayerText: TypeLayerTextConfigAn optional text configuration to apply to the feature
OptionalcallbackWhenCreatingStyle: (An optional callback to execute when a new style had to be created
The style applied to the feature or undefined if not found.
StaticgetStaticgetStaticgetThis method gets the image source from the style of the feature using the layer entry config.
The style to use
The icon associated to the feature or a default empty one.
StaticgetBuilds a filter string (SQL-like or OGC-compliant) for a given layer and style configuration. This method supports:
(1=1) condition.The style configuration (optional).
The filter expression, or undefined if not applicable.
StaticgetThis method gets the legend styles used by the the layer as specified by the style configuration.
The style configuration.
A promise that the layer styles are processed.
StaticgetMethod for getting the text style
The feature to get the text style for
The resolution of the map
The style settings
OptionallayerText: TypeLayerTextConfigThe layer text configuration
OptionalaliasLookup: TypeAliasLookupThe alias lookup
The text style
StaticinterpolateInterpolate a color between two hex colors.
The data value to interpolate for.
The lower data value.
The upper data value.
The hex color at the lower value.
The hex color at the upper value.
The interpolated color in rgba format.stat
StaticinterpolateInterpolate a value between two stops linearly.
The data value to interpolate for.
The lower data value.
The upper data value.
The output at the lower value.
The output at the upper value.
The interpolated output value.
StaticloadStaticprocessThis method is used to process the array of point styles as described in the pointStyleConfig.
Array of point style configuration.
A promise that the vector layer style is created.
StaticprocessStaticprocessStaticprocessProcess the class break settings using a lineString feature to get its Style.
Style settings to use.
Optionalfeature: Feature<Geometry>Feature used to test the unique value conditions.
Optionaloptions: TypeStyleProcessorOptionsOptional processing options.
The Style created. Undefined if unable to create it.
StaticprocessProcess the class break settings using a Point feature to get its Style.
Style settings to use.
Optionalfeature: Feature<Geometry>Feature used to test the unique value conditions.
Optionaloptions: TypeStyleProcessorOptionsOptional processing options.
The Style created. Undefined if unable to create it.
StaticprocessProcess the class break settings using a Polygon feature to get its Style.
Style settings to use.
Optionalfeature: Feature<Geometry>Feature used to test the unique value conditions.
Optionaloptions: TypeStyleProcessorOptionsOptional processing options.
The Style created. Undefined if unable to create it.
StaticprocessStaticprocessStaticprocessStaticprocessStaticprocessStaticprocessStaticprocessStaticprocessStaticprocessProcess a pattern fill using the settings.
Settings to use for the Style creation.
Fill pattern lines needed to create the fill.
Optionalgeometry: GeometryThe Style created. Undefined if unable to create it.
StaticprocessStaticprocessProcess a regular shape using the settings, the number of points, the angle and the scale.
Settings to use for the Style creation.
Number of points needed to create the symbol.
Angle to use for the symbol creation.
Scale to use for the symbol creation.
The Style created. Undefined if unable to create it.
StaticprocessProcess a simple lineString using the settings.
Settings to use for the Style creation.
Optionalfeature: Feature<Geometry>Optional feature. This method does not use it, it is there to have a homogeneous signature.
Optionaloptions: TypeStyleProcessorOptionsOptional processing options.
The Style created. Undefined if unable to create it.
StaticprocessProcess a simple point symbol using the settings. Simple point symbol may be an icon or a vector symbol.
Settings to use for the Style creation.
Optionalfeature: Feature<Geometry>Optional feature. This method does not use it, it is there to have a homogeneous signature.
Optionaloptions: TypeStyleProcessorOptionsOptional processing options.
The Style created. Undefined if unable to create it.
StaticprocessProcess a simple polygon using the settings.
Settings to use for the Style creation.
Optionalfeature: Feature<Geometry>Optional feature. This method does not use it, it is there to have a homogeneous signature.
Optionaloptions: TypeStyleProcessorOptionsOptional processing options
The Style created. Undefined if unable to create it.
StaticprocessStaticprocessStaticprocessProcess a star shape symbol using the settings.
Settings to use for the Style creation.
Number of points needed to create the symbol.
Angle to use for the symbol creation.
The Style created. Undefined if unable to create it.
StaticprocessStaticprocessProcess text template by replacing field placeholders with feature values Expects somewhat clean field names, so we shouldn't need to worry about escaping special characters (Dates may still have characters after the colon)
The text template with {field-name} placeholders
The feature to get field values from
The processed text with field values substituted
StaticprocessStaticprocessProcess the unique value settings using a lineString feature to get its Style.
Style settings to use.
Optionalfeature: Feature<Geometry>Feature used to test the unique value conditions.
Optionaloptions: TypeStyleProcessorOptionsOptional processing options.
The Style created. Undefined if unable to create it.
StaticprocessProcess the unique value settings using a polygon feature to get its Style.
Style settings to use.
Optionalfeature: Feature<Geometry>Feature used to test the unique value conditions.
Optionaloptions: TypeStyleProcessorOptionsOptional processing options.
The Style created. Undefined if unable to create it.
StaticprocessProcess the unique value settings using a point feature to get its Style.
Style settings to use.
Optionalfeature: Feature<Geometry>Feature used to test the unique value conditions.
Optionaloptions: TypeStyleProcessorOptionsOptional processing options.
The Style created. Undefined if unable to create it.
StaticprocessStaticprocessStaticreadThis method returns the type of geometry. It removes the Multi prefix because for the geoviewRenderer, a MultiPoint has the same behaviour than a Point.
The feature to check
The type of geometry (Point, LineString, Polygon).
StaticreadThis method returns the type of geometry. It removes the Multi prefix because for the geoviewRenderer, a MultiPoint has the same behaviour than a Point.
The feature to check
The default layer style config to use when the feature has no geometry
The type of geometry (Point, LineString, Polygon).
StaticsearchSearch the class breakentry using the field value stored in the feature.
Field involved in the class break definition.
Class break configuration.
Feature used to test the class break conditions.
OptionalaliasLookup: TypeAliasLookupAn optional lookup table to handle field name aliases.
The index of the entry. Undefined if unable to find it.
StaticsearchCheck whether a numeric value falls within a class-break interval using provided boundary conditions.
The conditions parameter is expected to be a two-element array where:
The numeric value to test.
The lower bound of the interval.
The upper bound of the interval.
Two-element array describing the boundary operators.
True if the value satisfies the interval according to the conditions, false otherwise.
StaticsearchSearch the unique value entry using the field values stored in the feature.
Fields involved in the unique value definition.
Unique value configuration.
Optionalfeature: Feature<Geometry>Feature used to test the unique value conditions.
OptionaldomainsLookup: TypeLayerMetadataFields[]An optional lookup table to handle coded value domains.
OptionalaliasLookup: TypeAliasLookupAn optional lookup table to handle field name aliases.
The Style created. Undefined if unable to create it.
StaticSVGEncodes an SVG XML string into a base64-encoded string. This is the inverse of base64ToSVGString, allowing you to safely embed or transmit SVG data in formats where raw XML is not permitted.
The raw SVG XML string to encode.
A base64-encoded representation of the SVG string.
StaticwrapStaticwrap
Table used to define line symbology to use when drawing polygon fill