An object literal containing the ParameterizedPointPainter's parameters.

Hierarchy

  • ParameterizedPointPainterConstructorOptions

Properties

attributes?: {
    [attritubeName: string]: string | ((feature) => any);
}

The attributes that can be used in expressions, and how the values of the attributes should be found. Each entry in the object literal should use the desired name of the attribute as key, and either the name of a feature property or a function that calculates the attribute value given a feature.
Only numeric attributes are supported. If you want to use feature properties based on other kinds of objects, you will need to map these to numbers in a function you provide.
If an attribute is ever to be used in any kind of expression, it must be specified in this object literal.

Type declaration

  • [attritubeName: string]: string | ((feature) => any)
drapeTarget?: DrapeTarget

Whether the (icons of the) points should be draped on top of the terrain or a 3D tiles mesh (or both). This setting is only relevant for 3D maps and is ignored for 2D maps. If used, the height of points is discarded.

Default

DrapeTarget.NOT_DRAPED

Since

2022.1

draped?: boolean

Whether the (icons of the) points should be draped on top of the terrain or a 3D tiles mesh (or both). This setting is only relevant for 3D maps and is ignored for 2D maps. If used, the height of points is discarded.

This property only exists for backwards compatibility. You should use DrapeTarget instead. false is equivalent to DrapeTarget.NOT_DRAPED and true is equivalent to DrapeTarget.TERRAIN.

Default

false

Deprecated

Use drapeTarget instead.

heading?: string | ((feature) => number)

Defines how the headings of the (icons of the) points should be found. You can provide either the name of a feature property or a function that calculates the heading given a feature. For more information on the meaning of the heading property, see heading.

Type declaration

An object literal containing the color, icon and scale expression to use when painting (regular) points.

An object literal containing the color, icon and scale expression to use when painting selected points.

visibilityExpression?: Expression<boolean>

The expression used to filter points.