---
title: "DataDrivenProperty | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Class DataDrivenProperty<T>

#### Type Parameters

-   T

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.DataDrivenProperty))

-   DataDrivenProperty
    -   [CrossFadedDataDrivenProperty](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.CrossFadedDataDrivenProperty/)

#### Implements

-   [Property](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Property/)<[T](#t), [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>\>

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[overrides](#overrides) [specification](#specification)

### Methods[](#methods)

[evaluate](#evaluate) [interpolate](#interpolate) [possiblyEvaluate](#possiblyevaluate)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new DataDrivenProperty<[T](#constructordatadrivenpropertyt)\>(  
        specification: [StylePropertySpecification](https://docs.maptiler.com/sdk-js/api-reference/types/StylePropertySpecification/),  
        overrides?: any,  
    ): DataDrivenProperty<[T](#t)\>[](#constructordatadrivenproperty)
    
    #### Type Parameters
    
    -   T
    
    #### Parameters
    
    -   specification: [StylePropertySpecification](https://docs.maptiler.com/sdk-js/api-reference/types/StylePropertySpecification/)
    -   `Optional`overrides: any
    
    #### Returns DataDrivenProperty<[T](#t)\>
    

## Properties[](#properties-1)

### overrides[](#overrides)

overrides: any

### specification[](#specification)

specification: [StylePropertySpecification](https://docs.maptiler.com/sdk-js/api-reference/types/StylePropertySpecification/)

Implementation of [Property](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Property/).[specification](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Property/#specification)

## Methods[](#methods-1)

### evaluate[](#evaluate)

-   evaluate(  
        value: [PossiblyEvaluatedValue](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.PossiblyEvaluatedValue/)<[T](#t)\>,  
        parameters: [EvaluationParameters](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.EvaluationParameters/),  
        feature: [Feature](https://docs.maptiler.com/sdk-js/api-reference/types/Feature/),  
        featureState: [FeatureState](https://docs.maptiler.com/sdk-js/api-reference/types/FeatureState/),  
        canonical?: [CanonicalTileID](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.CanonicalTileID/),  
        availableImages?: string\[\],  
    ): [T](#t)[](#evaluate-1)
    
    #### Parameters
    
    -   value: [PossiblyEvaluatedValue](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.PossiblyEvaluatedValue/)<[T](#t)\>
    -   parameters: [EvaluationParameters](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.EvaluationParameters/)
    -   feature: [Feature](https://docs.maptiler.com/sdk-js/api-reference/types/Feature/)
    -   featureState: [FeatureState](https://docs.maptiler.com/sdk-js/api-reference/types/FeatureState/)
    -   `Optional`canonical: [CanonicalTileID](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.CanonicalTileID/)
    -   `Optional`availableImages: string\[\]
    
    #### Returns [T](#t)
    

### interpolate[](#interpolate)

-   interpolate(  
        a: [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>,  
        b: [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>,  
        t: number,  
    ): [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>[](#interpolate-1)
    
    #### Parameters
    
    -   a: [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>
    -   b: [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>
    -   t: number
    
    #### Returns [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>
    
    Implementation of [Property](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Property/).[interpolate](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Property/#interpolate)
    

### possiblyEvaluate[](#possiblyevaluate)

-   possiblyEvaluate(  
        value: [PropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PropertyValue/)<[T](#t), [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>\>,  
        parameters: [EvaluationParameters](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.EvaluationParameters/),  
        canonical?: [CanonicalTileID](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.CanonicalTileID/),  
        availableImages?: string\[\],  
    ): [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>[](#possiblyevaluate-1)
    
    #### Parameters
    
    -   value: [PropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PropertyValue/)<[T](#t), [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>\>
    -   parameters: [EvaluationParameters](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.EvaluationParameters/)
    -   `Optional`canonical: [CanonicalTileID](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.CanonicalTileID/)
    -   `Optional`availableImages: string\[\]
    
    #### Returns [PossiblyEvaluatedPropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PossiblyEvaluatedPropertyValue/)<[T](#t)\>
    
    Implementation of [Property](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Property/).[possiblyEvaluate](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Property/#possiblyevaluate)
