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
Properties
Methods
toJson() | Object | Returns an easily serializable object representation of a multipart color ramp. |
Constructor Details
Creates a new MultipartColorRamp object.
Sample:
require([
"esri/tasks/MultipartColorRamp", ...
], function(MultipartColorRamp, ... ) {
var multiRamp = new MultipartColorRamp();
...
});
Property Details
A string value representing the color ramp type.
Method Details
Returns an easily serializable object representation of a multipart color ramp.