跳到主要内容

flywave-vectortile-datasource.omvfeaturemodifier

Home > @flywave/flywave-vectortile-datasource > OmvFeatureModifier

OmvFeatureModifier interface

The OmvFeatureModifier can be used to filter individual features.

Signature:

export interface OmvFeatureModifier 

Remarks

It gets passed in the Env of the feature, which contains all the values that can be searched for in a style. If a filter function returns false, the feature is ignored, and no geometry is being created.

In addition to pure filtering, the OmvFeatureModifier can also modify the [[Env]] of the feature, or even add new properties to the feature, for example, traffic states. The OmvFeatureModifier is executed before the styles are selected, so the geometry is created with the modified feature properties.

Methods

Method

Description

doProcessLineFeature(layer, env, level)

Check if the line feature described by env should be processed. The properties can be modified or added to.

doProcessPointFeature(layer, env, level)

Check if the point feature described by env should be processed. The properties can be modified or added to.

doProcessPolygonFeature(layer, env, level)

Check if the polygon feature described by env should be processed. The properties can be modified or added to.