Options
All
  • Public
  • Public/Protected
  • All
Menu

The OmvFeatureModifier can be used to filter individual features.

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.

Hierarchy

  • OmvFeatureModifier

Implemented by

Index

Methods

doProcessLineFeature

  • doProcessLineFeature(layer: string, env: MapEnv, level: number): boolean
  • Check if the line feature described by env should be processed. The properties can be modified or added to.

    Parameters

    • layer: string

      Current layer.

    • env: MapEnv

      Properties of line feature.

    • level: number

      Level of tile.

    Returns boolean

    false to ignore feature.

doProcessPointFeature

  • doProcessPointFeature(layer: string, env: MapEnv, level: number): boolean
  • Check if the point feature described by env should be processed. The properties can be modified or added to.

    Parameters

    • layer: string

      Current layer.

    • env: MapEnv

      Properties of point feature.

    • level: number

      Level of tile.

    Returns boolean

    false to ignore feature.

doProcessPolygonFeature

  • doProcessPolygonFeature(layer: string, env: MapEnv, level: number): boolean
  • Check if the polygon feature described by env should be processed. The properties can be modified or added to.

    Parameters

    • layer: string

      Current layer.

    • env: MapEnv

      Properties of polygon feature.

    • level: number

      Level of tile.

    Returns boolean

    false to ignore feature.

Generated using TypeDoc