geoview-core
    Preparing search index...

    Function getAndCreateFeatureStyle

    • This 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.

      Parameters

      • feature: FeatureLike

        Feature that need its style to be defined.

      • style: TypeLayerStyleConfig

        The style to use

      • label: string

        The style label when one has to be created

      • OptionalfilterEquation: FilterNodeType[]

        Filter equation associated to the layer.

      • OptionallegendFilterIsOff: boolean

        When true, do not apply legend filter.

      • OptionalaliasLookup: TypeAliasLookup

        An optional lookup table to handle field name aliases.

      • OptionalcallbackWhenCreatingStyle: (geometryType: TypeStyleGeometry, style: TypeLayerStyleConfigInfo) => void

        An optional callback to execute when a new style had to be created

      Returns Style | undefined

      The style applied to the feature or undefined if not found.