AnsweredAssumed Answered

CDE NewMapComponent - change color palette

Question asked by Igor Kvrgic on Jan 22, 2019
Latest reply on Jan 28, 2019 by Igor Kvrgic

Hi everyone,

 

I'm creating a CDE dashboard using NewMapComponent, and I'd like to change the color palette from a default one.

Right now the map looks like this:

1. All polygons

2. After setting certain parameters, I have only one polygon that renders like this

I've tried to change the

colormaps: {

"default": ["#ebf5fb", "#d6eaf8", "#aed6f1", "#85c1e9", "#5dade2", "#3498db", "#2e86c1", "#2874a6", "#21618c", "#1B4F72"],

"default0": [[0, 102, 0, 1], [255, 255, 0, 1], [255, 0, 0, 1]], //RGBA

"jet": [],

"gray": [[174, 182, 191, 255], [235, 237, 239, 1]],

"french-flag": [[255, 0, 0, 1], [255, 254, 255, 1], [0, 0, 255, 1]]

}

in Map.colorMap.js located in pentaho-cdf-dd\resources\components\NewMapComponent\amd but to no success.

So my questions are:

1. How can I change the palette using hex/rgb values?

2. Once I drill down to a single polygon, that polygon is colored black, how edit single polygon color?

 

Thanks

Igor

Outcomes