• esri/smartMapping


AMD: require(["esri/smartMapping/raster/renderers/colormap"], (rasterColormapCreator) => { /* code goes here */ });
ESM: import * as rasterColormapCreator from "@arcgis/core/smartMapping/raster/renderers/colormap.js";
Object: esri/smartMapping/raster/renderers/colormap
Since: ArcGIS Maps SDK for JavaScript 4.20

This object contains helper methods for generating a RasterColormapRenderer for raster layers (i.e. ImageryLayer, ImageryTileLayer).

The createRenderer method in this module generates a renderer that may be applied directly to the input layer.

Method Overview

Name Return Type Summary Object

Generates a RasterColormapRenderer used to render imagery data.

more details

Method Details


Generates a RasterColormapRenderer used to render imagery data.

params Object

Input parameters for generating a colormap visualization. See the table below for details of each parameter.


The input layer for which the renderer is generated.

renderingRule RasterFunction

Specifies the rule for how the requested image should be rendered. When renderingRule is applied, the server returns updated service information that reflects custom processing as defined by the rendering rule. If not provided, the output renderer is created using the layer's renderingRule.

signal AbortSignal

Allows for cancelable requests. If canceled, the promise will be rejected with an error named AbortError. See also AbortController.

Type Description
Promise<RasterColormapResult> Resolves to an object containing a RasterColormapRenderer that can be set on the input layer.

Type Definitions


The result object of the createRenderer() method. See the table below for details of each property.


The colormap renderer to apply to the input layer.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.