---
title: "PropertyValue | 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 PropertyValue<T, R>

#### Type Parameters

-   T
-   R

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[expression](#expression) [property](#property) [value](#value)

### Methods[](#methods)

[getGlobalStateRefs](#getglobalstaterefs) [isDataDriven](#isdatadriven) [possiblyEvaluate](#possiblyevaluate)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new PropertyValue<[T](#constructorpropertyvaluet), [R](#constructorpropertyvaluer)\>(  
        property: [Property](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Property/)<[T](#t), [R](#r)\>,  
        value: void | [PropertyValueSpecification](https://docs.maptiler.com/sdk-js/api-reference/types/PropertyValueSpecification/)<[T](#t)\>,  
        globalState: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<string, any\>,  
    ): PropertyValue<[T](#t), [R](#r)\>[](#constructorpropertyvalue)
    
    #### Type Parameters
    
    -   T
    -   R
    
    #### Parameters
    
    -   property: [Property](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Property/)<[T](#t), [R](#r)\>
    -   value: void | [PropertyValueSpecification](https://docs.maptiler.com/sdk-js/api-reference/types/PropertyValueSpecification/)<[T](#t)\>
    -   globalState: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<string, any\>
    
    #### Returns PropertyValue<[T](#t), [R](#r)\>
    

## Properties[](#properties-1)

### expression[](#expression)

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

### property[](#property)

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

### value[](#value)

value: void | [PropertyValueSpecification](https://docs.maptiler.com/sdk-js/api-reference/types/PropertyValueSpecification/)<[T](#t)\>

## Methods[](#methods-1)

### getGlobalStateRefs[](#getglobalstaterefs)

-   getGlobalStateRefs(): Set<string\>[](#getglobalstaterefs-1)
    
    #### Returns Set<string\>
    

### isDataDriven[](#isdatadriven)

-   isDataDriven(): boolean[](#isdatadriven-1)
    
    #### Returns boolean
    

### possiblyEvaluate[](#possiblyevaluate)

-   possiblyEvaluate(  
        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\[\],  
    ): [R](#r)[](#possiblyevaluate-1)
    
    #### Parameters
    
    -   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 [R](#r)
