Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/workers
Class: MultipartColorRamp

require(["esri/tasks/MultipartColorRamp"], function(MultipartColorRamp) { /* code goes here */ });

Description

(Added at v2.6)
Create a multipart color ramp to concatenate multiple color ramps for use in the renderer generated by the GenerateRendererTask. After creating a new MultipartColorRamp object you can add algorithmic color ramps using the addRamp method. The MultipartColorRamp will try to use an equal number of colors from each member ramp to create its colors.

Samples

Search for samples that use this class.

Class hierarchy

esri/tasks/ColorRamp
|_esri/tasks/MultipartColorRamp

Constructors

NameSummary
new MultipartColorRamp()Creates a new MultipartColorRamp object.

Properties

NameTypeSummary
colorRampsAlgorithmicColorRamp[]Define an array of algorithmic color ramps used to generate the multi part ramp.
typeStringA string value representing the color ramp type.

Methods

NameReturn typeSummary
toJson()ObjectReturns an easily serializable object representation of a multipart color ramp.
Constructor Details

new MultipartColorRamp()

Creates a new MultipartColorRamp object.
Sample:
require([
  "esri/tasks/MultipartColorRamp", ... 
], function(MultipartColorRamp, ... ) {
  var multiRamp = new MultipartColorRamp();
  ...
});
Property Details
Define an array of algorithmic color ramps used to generate the multi part ramp.

<String> type

A string value representing the color ramp type.
Method Details

toJson()

Returns an easily serializable object representation of a multipart color ramp.
Return type: Object