---
title: "DataConstantProperty | 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 DataConstantProperty<T>

#### Type Parameters

-   T

#### Implements

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

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[specification](#specification)

### Methods[](#methods)

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

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new DataConstantProperty<[T](#constructordataconstantpropertyt)\>(  
        specification: [StylePropertySpecification](https://docs.maptiler.com/sdk-js/api-reference/types/StylePropertySpecification/),  
    ): DataConstantProperty<[T](#t)\>[](#constructordataconstantproperty)
    
    #### Type Parameters
    
    -   T
    
    #### Parameters
    
    -   specification: [StylePropertySpecification](https://docs.maptiler.com/sdk-js/api-reference/types/StylePropertySpecification/)
    
    #### Returns DataConstantProperty<[T](#t)\>
    

## Properties[](#properties-1)

### 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)

### interpolate[](#interpolate)

-   interpolate(a: [T](#t), b: [T](#t), t: number): [T](#t)[](#interpolate-1)
    
    #### Parameters
    
    -   a: [T](#t)
    -   b: [T](#t)
    -   t: number
    
    #### Returns [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), [T](#t)\>,  
        parameters: [EvaluationParameters](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.EvaluationParameters/),  
    ): [T](#t)[](#possiblyevaluate-1)
    
    #### Parameters
    
    -   value: [PropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PropertyValue/)<[T](#t), [T](#t)\>
    -   parameters: [EvaluationParameters](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.EvaluationParameters/)
    
    #### Returns [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)
