---
title: "ColorRampProperty | 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 ColorRampProperty

#### Implements

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

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[specification](#specification)

### Methods[](#methods)

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

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new ColorRampProperty(  
        specification: [StylePropertySpecification](https://docs.maptiler.com/sdk-js/api-reference/types/StylePropertySpecification/),  
    ): ColorRampProperty[](#constructorcolorrampproperty)
    
    #### Parameters
    
    -   specification: [StylePropertySpecification](https://docs.maptiler.com/sdk-js/api-reference/types/StylePropertySpecification/)
    
    #### Returns ColorRampProperty
    

## 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(): boolean[](#interpolate-1)
    
    #### Returns boolean
    
    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/)<[Color](https://docs.maptiler.com/sdk-js/api-reference/classes/Color/), boolean\>,  
        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\[\],  
    ): boolean[](#possiblyevaluate-1)
    
    #### Parameters
    
    -   value: [PropertyValue](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.PropertyValue/)<[Color](https://docs.maptiler.com/sdk-js/api-reference/classes/Color/), boolean\>
    -   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 boolean
    
    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)
