Is it possible to change a HeatmapSlider programmatically?.

218
1
03-04-2020 05:26 AM
GeoGarage-vmbp-
New Contributor II

I have a customized heatmap widget in which it is possible choose several color ramps (with several ColorStops). The widget has a heatmap slider. When choose a color ramp option, it is possible to change the layer renderer:

...

heatmapRender.setColorStops(otherColorStops);

layer.setRenderer(heatmapRenderer);

layer.refresh();

...

Nevertheless, I don't get to actualize the control HeatmapSlider.

Is there any wayto change it?

I'm using WAB 2.8 for developers edition (therefore, API JS 3.24).

Thanks in advance.

The universe is a hostile place
0 Kudos
1 Reply
GeoGarage-vmbp-
New Contributor II

I answer myself:

Yes it is possible

heatmapSlider.set("colorStop", "otherColorStops");

Thanks.

The universe is a hostile place
0 Kudos