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

dojo.require("esri.tasks.MultipartColorRamp")

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 esri.tasks.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 esri.tasks.MultipartColorRamp()

Creates a new MultipartColorRamp object.
Sample:

var multiRamp = new esri.tasks.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
Show Modal