XYZ Maps Documentation
    Preparing search index...

    Type Alias StyleValueFunction<Type>

    StyleValueFunction: (feature: Feature, zoom: number) => Type | undefined

    A StyleValueFunction is a function that returns the desired value for the respective style property. It's especially useful for data driven styling.

    Type Parameters

    • Type

    Type Declaration

      • (feature: Feature, zoom: number): Type | undefined
      • Parameters

        • feature: Feature

          the feature for which the style is to be obtained

        • zoom: number

          the zoomlevel of the style

        Returns Type | undefined

    text: (feature, zoom) => feature.properties.name