HeatmapRenderer on GraphicsLayer?

2790
2
10-27-2015 03:53 AM
FabianoScardua
New Contributor II

Is it possible assign a HeatmapRenderer to GraphicsLayer?

Like this:

var graphicLayer = new GraphicsLayer();

var heatmapRenderer = new HeatmapRenderer({
    colors
: ["rgba(0, 0, 255, 0)","rgb(0, 0, 255)","rgb(255, 0, 255)", "rgb(255, 0, 0)"],
    blurRadius
: 12,
    maxPixelIntensity
: 250,
    minPixelIntensity
: 10
});

graphicLayer.setRenderer(heatmapRenderer);

map.addLayer(graphicLayer);

This code does not work properly.

Tags (2)
0 Kudos
2 Replies
RickeyFight
MVP Regular Contributor

Fabiano Scardua,

Look here:

Heatmap layer as Graphics Layer?

0 Kudos
FabianoScardua
New Contributor II

I whould to use HeatmapRenderer and GraphicLayer together, it's not possible?

0 Kudos